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

This commit is contained in:
Torkel Ödegaard authored and GitHub committed 2019-10-07 09:06:15 +02:00
1 parent 0016189f28
commit 6f0faa595b
2 files changed
+1022 -772

No files matched your search

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