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.
如何在按钮 onclick 上动态删除和添加折线图上的圆圈?
您可以通过 hide() 函数隐藏 svg 元素(圆圈)。
http://jsfiddle.net/HzUZg/1
$('#btn').click(function(){ $.each(chart.series[0].data,function(i,data){ if(data.graphic.visibility=="hidden") data.graphic.show(); else data.graphic.hide(); }); });