标签:item 类型 eve end tps event div nts var
https://bbs.hcharts.cn/article-109-1.html
*****************************************
图表自带的图例点击事件是:
plotOptions : { line : { events : { legendItemClick : function(event) { var series = this.chart.series; var mode = getVisibleMode(series, this.name); var enableDefault = false; if (!this.visible) { enableDefault = true; } else if (mode == ‘all-visible‘) { $.each(series, function(k, serie) { serie.hide(); }); this.show(); } else if (mode == ‘all-hidden‘) { $.each(series, function(k, serie) { serie.show(); }); } else { enableDefault = true; } return enableDefault; } } } },
// 更改 点击series功能. plotOptions : { line : { events : { legendItemClick : function(event) { var editorName = this.name; queryArticlelistByEditor(editorName) //调用清单查询. return false; } } } },
标签:item 类型 eve end tps event div nts var
原文地址:http://www.cnblogs.com/zhao1949/p/7063010.html