Browse Source

Merge pull request #703 from Dumkaaa/master

Y-axis had incorrect/duplicate labels, fixes #696
Rob 8 years ago
parent
commit
59af78438b
1 changed files with 2 additions and 2 deletions
  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) {
             function formatDigit(a,b) {
                 if (a > 1000000) {
                 if (a > 1000000) {
-                    return Math.round(a/1000000) + 'mio';
+                    return (a/1000000).toFixed(1) + 'mio';
                 }
                 }
                 if (a > 1000) {
                 if (a > 1000) {
-                    return Math.round(a/1000) + 'K';
+                    return (a/1000).toFixed(1) + 'K';
                 }
                 }
                 return a;
                 return a;
             }
             }