Raphael
通过Raphael给svg饼状图中的文字添加链接。IE9以下版本无效。
代码:
D = k.text(K + 20, F, G[C] || b[C]).attr(
k.g.txtattr).attr({
fill : l.legendcolor || "#000",
"text-anchor" : "start"
});
//此处给文字添加链接
l.href && l.href[E] && D.attr({
href : l.href[E]
});
n.labels[E].push(D);