【发布时间】:2013-04-06 03:17:57
【问题描述】:
如何获取拉斐尔饼图的属性:
属性如: 笔画、数值(不带图例)、半径、x 和 y 位置
我的饼图定义为:
pie = r.piechart(120, 140, 50, [55, 22], {
colors: ["green","red"],
stroke: "black"
});
我试过了:
this.stroke -- 表示未定义
// 我知道这让我得到了正确的 raphael 对象,因为我也在做一些工作
this.click(function () {
alert(this.stroke);
});
this.attr('stroke'); -- 甚至不显示 undefined
知道如何解决这个问题...谢谢
【问题讨论】:
标签: javascript jquery raphael pie-chart