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

This commit is contained in:
Torkel Ödegaard
2015-03-05 11:16:48 +01:00
parent 97e5a04621
commit 1ac9b50f21
+2 -1
View File
@@ -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) {