Przeglądaj źródła

fix(graph tooltip): fixed graph tooltip when stacking and one series is not stacked (via override), fixes #2670

Torkel Ödegaard 10 lat temu
rodzic
commit
97d42991a7
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      public/app/panels/graph/graph.tooltip.js

+ 1 - 1
public/app/panels/graph/graph.tooltip.js

@@ -55,7 +55,7 @@ function ($) {
         hoverIndex = this.findHoverIndexFromData(pos.x, series);
         results.time = series.data[hoverIndex][0];
 
-        if (scope.panel.stack) {
+        if (series.stack) {
           if (scope.panel.tooltip.value_type === 'individual') {
             value = series.data[hoverIndex][1];
           } else if (!series.stack) {