g.circular.js
authoredward <edward@roojs.com>
Thu, 21 Jun 2018 10:23:27 +0000 (18:23 +0800)
committeredward <edward@roojs.com>
Thu, 21 Jun 2018 10:23:27 +0000 (18:23 +0800)
g.circular.js

index 712477a..569a804 100644 (file)
@@ -164,10 +164,8 @@ Roo = typeof(Roo) != 'undefined' ? Roo:  (imports ? imports.seed.Roo.Roo: {});
                     continue;
                 }
                 
-//                chart.labels.push(paper.set());
-                chart.labels[i].push(paper[mark](x + 5, y, 5).attr({ fill: colors[i] || chartinst.colors[i], stroke: "none" }));
-                chart.labels[i].push(
-                    txt = paper.text(x + 20, y, labels[j] || values[i]).attr(opts.txtattr || chartinst.txtattr).attr({ fill: opts.legendcolor || "#000", "text-anchor": "start"}));
+                paper[mark](x + 5, y, 5).attr({ fill: colors[i] || chartinst.colors[i], stroke: "none" })
+                txt = paper.text(x + 20, y, labels[j] || values[i]).attr(opts.txtattr || chartinst.txtattr).attr({ fill: opts.legendcolor || "#000", "text-anchor": "start"})
                 
                 y += txt.getBBox().height * 1.2;
             }