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

This commit is contained in:
Torkel Ödegaard 2019-10-07 09:06:15 +02:00 committed by GitHub
parent 0016189f28
commit 6f0faa595b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1022 additions and 772 deletions

File diff suppressed because it is too large Load Diff

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