소스 검색

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

Torkel Ödegaard 6 년 전
부모
커밋
3c42fece71
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      public/vendor/flot/jquery.flot.js

+ 1 - 2
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);
             }