From 7f33bec71c6d2d51e445c59f2143d116133a5f0d Mon Sep 17 00:00:00 2001 From: toni-moreno Date: Thu, 25 Sep 2014 15:45:18 +0200 Subject: [PATCH] fixing the previous fix, now working fine --- src/app/directives/grafanaGraph.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/app/directives/grafanaGraph.js b/src/app/directives/grafanaGraph.js index 193d0101b76..1eaacb098a6 100755 --- a/src/app/directives/grafanaGraph.js +++ b/src/app/directives/grafanaGraph.js @@ -356,10 +356,11 @@ function (angular, $, kbn, moment, _) { if(_.uniq(l).length === 1) { s=''; series = data[0]; - j=0; - do { - ++j; - } while (series.data[j][0] < pos.x && j pos.x){ + break; + } + } j--; //we take previous value in time. //now we know the current X (j) position for X and Y values timestamp = dashboard.formatDate(series.data[j][0]);