Commit 97d42991 by Torkel Ödegaard

fix(graph tooltip): fixed graph tooltip when stacking and one series is not…

fix(graph tooltip): fixed graph tooltip when stacking and one series is not stacked (via override), fixes #2670
parent cd6bdc1a
...@@ -55,7 +55,7 @@ function ($) { ...@@ -55,7 +55,7 @@ function ($) {
hoverIndex = this.findHoverIndexFromData(pos.x, series); hoverIndex = this.findHoverIndexFromData(pos.x, series);
results.time = series.data[hoverIndex][0]; results.time = series.data[hoverIndex][0];
if (scope.panel.stack) { if (series.stack) {
if (scope.panel.tooltip.value_type === 'individual') { if (scope.panel.tooltip.value_type === 'individual') {
value = series.data[hoverIndex][1]; value = series.data[hoverIndex][1];
} else if (!series.stack) { } else if (!series.stack) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment