We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eb0ea3 commit 0034b6eCopy full SHA for 0034b6e
public/app/plugins/panel/graph/graph_tooltip.js
@@ -22,10 +22,13 @@ function ($) {
22
var len = series.datapoints.points.length;
23
for (var j = initial; j < len; j += ps) {
24
if (series.datapoints.points[j] > posX) {
25
- return Math.max(j - ps, 0)/ps;
+ break;
26
}
27
28
- return j/ps - 1;
+ // Special case of a non stepped line, highlight the very last point just before a null point
29
+ while(!series.lines.steps && series.datapoints.points[initial] != null && j>0 && series.datapoints.points[j-ps] == null)
30
+ j-=ps;
31
+ return Math.max(j - ps, 0)/ps;
32
};
33
34
this.findHoverIndexFromData = function(posX, series) {
0 commit comments