g.pie.sector.js
authorleon <leon@roojs.com>
Wed, 26 Apr 2023 04:28:10 +0000 (12:28 +0800)
committerleon <leon@roojs.com>
Wed, 26 Apr 2023 04:28:10 +0000 (12:28 +0800)
g.pie.sector.js

index 6dae549..be18306 100644 (file)
@@ -233,8 +233,12 @@ Roo = typeof(Roo) != 'undefined' ? Roo:  (imports ? imports.seed.Roo.Roo: {});
 
             if(legendColumn == 2) {
                 if(i % 2 == 1) {
+                    ix = cx;
                     iy -= lineHeight;
                 }
+                else {
+                    ix = cx - r - opts.barwidth / 2 - 60;
+                }
             }
 
             iy += lineHeight;