Commit 1ac9b50f by Torkel Ödegaard

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

parent 97e5a046
...@@ -374,10 +374,11 @@ function (angular, $, kbn, moment, _, GraphTooltip) { ...@@ -374,10 +374,11 @@ function (angular, $, kbn, moment, _, GraphTooltip) {
if (min && max && ticks) { if (min && max && ticks) {
var secPerTick = ((max - min) / ticks) / 1000; var secPerTick = ((max - min) / ticks) / 1000;
console.log('secPerTick', secPerTick);
if (secPerTick <= 45) { if (secPerTick <= 45) {
return "%H:%M:%S"; return "%H:%M:%S";
} }
if (secPerTick <= 3600) { if (secPerTick <= 7200) {
return "%H:%M"; return "%H:%M";
} }
if (secPerTick <= 80000) { if (secPerTick <= 80000) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment