Graph: Updated auto decimals logic and test dashboard (#19618)

(cherry picked from commit 6f0faa595b)
This commit is contained in:
Torkel Ödegaard
2019-10-08 10:32:46 +02:00
committed by Hugo Häggmark
parent e206511142
commit db67297808
2 changed files with 1022 additions and 772 deletions
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1783,7 +1783,7 @@ Licensed under the MIT license.
// grafana addition
if (opts.tickDecimals === null || opts.tickDecimals === undefined) {
axis.scaledDecimals = axis.tickDecimals - Math.ceil((1 / getSignificantDigitCount(axis.tickSize)) * 3);
axis.scaledDecimals = axis.tickDecimals + dec;
}
// Time mode was moved to a plug-in in 0.8, and since so many people use it