فهرست منبع

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();