|
@@ -359,7 +359,7 @@ function (angular, $, kbn, moment, _) {
|
|
|
j=0;
|
|
j=0;
|
|
|
do {
|
|
do {
|
|
|
++j;
|
|
++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.
|
|
j--; //we take previous value in time.
|
|
|
//now we know the current X (j) position for X and Y values
|
|
//now we know the current X (j) position for X and Y values
|
|
|
timestamp = dashboard.formatDate(series.data[j][0]);
|
|
timestamp = dashboard.formatDate(series.data[j][0]);
|