ソースを参照

Graph: series tooltip length check

Torkel Ödegaard 11 年 前
コミット
c6cb01aa3b
1 ファイル変更4 行追加0 行削除
  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();