From ed76335c9687c44756ad7524ad74a88b2b4f9ab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 6 Feb 2014 10:39:24 +0100 Subject: [PATCH] small change to time axis formats, more graphite like now --- src/app/directives/grafanaGraph.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/directives/grafanaGraph.js b/src/app/directives/grafanaGraph.js index 115cd5bd95d..0678ffcc91f 100644 --- a/src/app/directives/grafanaGraph.js +++ b/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
%m-%d"; + } if(_int >= 700) { - return "%H:%M
%m-%d"; + return "%a %H:%M" //"%H:%M
%m-%d"; } return "%H:%M";