Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以使用以下代码设置图形的颜色:
chart.series[1].data[1].graphic.attr("fill","red");
但是,如果我尝试检索该值,我会得到一个空响应:NaN
console.log(chart.series[1].data[1].graphic.attr("fill"));
如何检查当前填充?
非常感谢
你应该使用
chart.series[0].data[0].graphic.fill
http://jsfiddle.net/EzxJ9/1/