for (i = 0; i < len; i++) {
var mangle = angle - 360 * values[i] / total / 2;
-
+
if (!i) {
// start..
if (typeof(opts.start_angle) == 'undefined') {
}
var path = sector(cx, cy, r, angle, angle -= 360 * values[i] / total);
-
- Roo.log(values[i]);
- Roo.log(angle);
- Roo.log(angle- 360 * values[i] / total);
- Roo.log(path);
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];