Prechádzať zdrojové kódy

Merge pull request #703 from Dumkaaa/master

Y-axis had incorrect/duplicate labels, fixes #696
Rob 8 rokov pred
rodič
commit
59af78438b

+ 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;
             }