소스 검색

Y-axis had incorrect/duplicate labels, fixes #696

Dmitriy Larionov 8 년 전
부모
커밋
1fd36f4a99
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Packagist/WebBundle/Resources/public/js/charts.js

+ 2 - 2
src/Packagist/WebBundle/Resources/public/js/charts.js

@@ -45,10 +45,10 @@
             }
             function formatDigit(a,b) {
                 if (a > 1000000) {
-                    return Math.round(a/1000000) + 'mio';
+                    return (a/1000000).toFixed(1) + 'mio';
                 }
                 if (a > 1000) {
-                    return Math.round(a/1000) + 'K';
+                    return (a/1000).toFixed(1) + 'K';
                 }
                 return a;
             }