This commit is contained in:
benrubson 2016-11-18 19:14:12 +01:00
parent 0034b6ede7
commit 9797845460

View File

@ -26,8 +26,9 @@ function ($) {
}
}
// Special case of a non stepped line, highlight the very last point just before a null point
while(!series.lines.steps && series.datapoints.points[initial] != null && j>0 && series.datapoints.points[j-ps] == null)
while(!series.lines.steps && series.datapoints.points[initial] != null && j>0 && series.datapoints.points[j-ps] == null) {
j-=ps;
}
return Math.max(j - ps, 0)/ps;
};