g.Raphael を使用してグラフを作成しました。
$(function(){
var r = Raphael("pieChart"),
pie = r.piechart(320, 240, 100, [55, 20, 13, 32, 5, 1, 2, 10]);
r.text(320, 100, "Interactive Pie Chart").attr({ font: "20px sans-serif" });
$(pie.sector).click(function(){
alert('hi');//not work!
})
})
後でクリックイベントをpie.sectorに追加しましたが、イベントが機能しません... jQueryでgRaphaelを処理する正しい方法を知っている人はいますか?