Parcourir la source

Increased limit before graph date axis switches to showing date and hour, Fixes #1558

Torkel Ödegaard il y a 10 ans
Parent
commit
1ac9b50f21
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/app/panels/graph/graph.js

+ 2 - 1
src/app/panels/graph/graph.js

@@ -374,10 +374,11 @@ function (angular, $, kbn, moment, _, GraphTooltip) {
           if (min && max && ticks) {
             var secPerTick = ((max - min) / ticks) / 1000;
 
+            console.log('secPerTick', secPerTick);
             if (secPerTick <= 45) {
               return "%H:%M:%S";
             }
-            if (secPerTick <= 3600) {
+            if (secPerTick <= 7200) {
               return "%H:%M";
             }
             if (secPerTick <= 80000) {