fix #8056 - more refinements to checking data
[g.raphael] / g.pie.js
index 08d2f44..e50e397 100644 (file)
--- a/g.pie.js
+++ b/g.pie.js
@@ -28,8 +28,7 @@ Roo = typeof(Roo) != 'undefined' ? Roo:  (imports ? imports.seed.Roo.Roo: {});
     function Piechart(paper, cx, cy, r, values, opts) {
         
         opts = opts || {};
-        Roo.log('in????');
-        Roo.log(opts);
+
         var chartinst = this,
             sectors = [],
             covers = paper.set(),
@@ -63,8 +62,7 @@ Roo = typeof(Roo) != 'undefined' ? Roo:  (imports ? imports.seed.Roo.Roo: {});
         }
         
         chart.covers = covers;
-        Roo.log('show colors');
-        Roo.log(chartinst.colors);
+        
         if (len == 1) {
             series.push(paper.circle(cx, cy, r).attr({ fill: opts.colors && opts.colors[0] || chartinst.colors[0] || "#666", stroke: opts.stroke || "#fff", "stroke-width": opts.strokewidth == null ? 1 : opts.strokewidth }));
             covers.push(paper.circle(cx, cy, r).attr(chartinst.shim));
@@ -124,7 +122,6 @@ Roo = typeof(Roo) != 'undefined' ? Roo:  (imports ? imports.seed.Roo.Roo: {});
                 }
 
                 var path = sector(cx, cy, r, angle, angle -= 360 * values[i] / total);
-                
                 var p = paper.path(opts.init ? ipath : path).attr({ fill: opts.colors && opts.colors[i] || chartinst.colors[i] || "#666", stroke: opts.stroke || "#fff", "stroke-width": (opts.strokewidth == null ? 1 : opts.strokewidth), "stroke-linejoin": "round" });
 
                 p.value = values[i];