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:
Mitsuhiro Tanda
2018-08-02 18:49:40 +09:00
committed by Torkel Ödegaard
parent a8976f6c36
commit 04fcd2a054
4 changed files with 20 additions and 1 deletions

View File

@@ -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];