mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
add series override option to hide tooltip (#12378)
* add series override option to hide tooltip * fix test * invert option * fix test * remove initialization
This commit is contained in:
committed by
Torkel Ödegaard
parent
a8976f6c36
commit
04fcd2a054
@@ -81,6 +81,11 @@ export default function GraphTooltip(elem, dashboard, scope, getSeriesFn) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (series.hideTooltip) {
|
||||
results[0].push({ hidden: true, value: 0 });
|
||||
continue;
|
||||
}
|
||||
|
||||
hoverIndex = this.findHoverIndexFromData(pos.x, series);
|
||||
hoverDistance = pos.x - series.data[hoverIndex][0];
|
||||
pointTime = series.data[hoverIndex][0];
|
||||
|
||||
Reference in New Issue
Block a user