Commit 7f33bec7 by toni-moreno

fixing the previous fix, now working fine

parent 3ea94c34
...@@ -356,10 +356,11 @@ function (angular, $, kbn, moment, _) { ...@@ -356,10 +356,11 @@ function (angular, $, kbn, moment, _) {
if(_.uniq(l).length === 1) { if(_.uniq(l).length === 1) {
s=''; s='';
series = data[0]; series = data[0];
j=0; for(j=0;j<series.data.length;j++) {
do { if(series.data[j][0] > pos.x){
++j; break;
} 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]);
......
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