From 3c42fece716f86a38c6b27a446bb1375aa879fee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 8 Apr 2019 16:54:15 +0200 Subject: [PATCH] Graph: follow-up graph decimals fix, #16414 (#16450) --- public/vendor/flot/jquery.flot.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/vendor/flot/jquery.flot.js b/public/vendor/flot/jquery.flot.js index 15a6b067846..57791aebe69 100644 --- a/public/vendor/flot/jquery.flot.js +++ b/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); }