g.pie.sector.js
authorleon <leon@roojs.com>
Wed, 14 Jun 2023 07:06:34 +0000 (15:06 +0800)
committerleon <leon@roojs.com>
Wed, 14 Jun 2023 07:06:34 +0000 (15:06 +0800)
g.pie.sector.js

index a0752a6..89cdc58 100644 (file)
@@ -212,7 +212,7 @@ Roo = typeof(Roo) != 'undefined' ? Roo:  (imports ? imports.seed.Roo.Roo: {});
             var text = (values[i].others) ? opts.others : opts.legend[values[i].origin] || values[i];
             
             if(text.indexOf('#qty#') !== -1) {
-                text = text.replace('#qty#', Roo.util.Format.number(Math.round(values[i])));
+                text = text.replace('#qty#', Roo.util.Format.number(Math.round(values[i]), 0));
             }
 
             if(text.indexOf('#%#') !== -1) {