Kaynağa Gözat

small change to time axis formats, more graphite like now

Torkel Ödegaard 12 yıl önce
ebeveyn
işleme
ed76335c96
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 4 1
      src/app/directives/grafanaGraph.js

+ 4 - 1
src/app/directives/grafanaGraph.js

@@ -262,8 +262,11 @@ function (angular, $, kbn, moment, _) {
           if(_int >= 10000) {
             return "%Y-%m-%d";
           }
+          if(_int >= 3600) {
+            return "%m/%d %H:%M" //"%H:%M<br>%m-%d";
+          }
           if(_int >= 700) {
-            return "%H:%M<br>%m-%d";
+            return "%a %H:%M" //"%H:%M<br>%m-%d";
           }
 
           return "%H:%M";