little fix when searching x index time

This commit is contained in:
toni-moreno
2014-09-25 06:35:49 +02:00
parent f59bb6461a
commit 3ea94c3484
+1 -1
View File
@@ -359,7 +359,7 @@ function (angular, $, kbn, moment, _) {
j=0;
do {
++j;
} while (series.data[j][0] < pos.x);
} while (series.data[j][0] < pos.x && j<series.length);
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]);