get pie chart sector color?

53 views
Skip to first unread message

Lucas

unread,
May 3, 2012, 12:48:42 AM5/3/12
to Raphaël
pie.hover(function () {
this.sector.stop();
this.sector.scale(1.1, 1.1, this.cx, this.cy);

alert(this.sector.color); // how to query for
current sector color hovered by user?



}

Sebastian Gurin

unread,
May 3, 2012, 2:13:39 PM5/3/12
to raph...@googlegroups.com
this.sector.attr("fill")

I figure I'm also trying to decript the graphael undocumented javascript api. The bad thing with undocumented code in languages with no types is that you have to figure how the api works using firebug or something like that......
Reply all
Reply to author
Forward
0 new messages