Forráskód Böngészése

Graph: series tooltip length check

Torkel Ödegaard 11 éve
szülő
commit
c6cb01aa3b
1 módosított fájl, 4 hozzáadás és 0 törlés
  1. 4 0
      src/app/directives/grafanaGraph.tooltip.js

+ 4 - 0
src/app/directives/grafanaGraph.tooltip.js

@@ -120,6 +120,10 @@ function ($) {
         scope.appEvent('setCrosshair',  { pos: pos, scope: scope });
       }
 
+      if (seriesList.length === 0) {
+        return;
+      }
+
       if (scope.panel.tooltip.shared) {
         plot.unhighlight();