Commit 3ea94c34 by toni-moreno

little fix when searching x index time

parent f59bb646
......@@ -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]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment