Graph: follow-up graph decimals fix, #16414 (#16450)

pull/15516/head^2
Torkel Ödegaard 6 years ago committed by GitHub
parent 67cbc7d4cf
commit 3c42fece71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      public/vendor/flot/jquery.flot.js

@ -1763,9 +1763,8 @@ Licensed under the MIT license.
axis.delta = delta;
axis.tickDecimals = Math.max(0, maxDec != null ? maxDec : dec);
axis.tickSize = opts.tickSize || size;
// grafana addition
if (opts.tickDecimals === null && opts.tickDecimals === undefined) {
if (opts.tickDecimals === null || opts.tickDecimals === undefined) {
axis.scaledDecimals = axis.tickDecimals - Math.floor(Math.log(axis.tickSize) / Math.LN10);
}

Loading…
Cancel
Save