Skip to content

Commit becb630

Browse files
author
benrubson
committed
Revert grafana#6287 for graph_tooltip.js
1 parent 850d39f commit becb630

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

public/app/plugins/panel/graph/graph_tooltip.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ function ($) {
2121
var initial = last*ps;
2222
var len = series.datapoints.points.length;
2323
for (var j = initial; j < len; j += ps) {
24-
// Special case of a non stepped line, highlight the very last point just before a null point
25-
if ((series.datapoints.points[initial] != null && series.datapoints.points[j] == null && ! series.lines.steps)
26-
//normal case
27-
|| series.datapoints.points[j] > posX) {
24+
if (series.datapoints.points[j] > posX) {
2825
return Math.max(j - ps, 0)/ps;
2926
}
3027
}

0 commit comments

Comments
 (0)