需求
- 不显示版权信息
https://api.hcharts.cn/#credits.enabled - 修改图例的点击处理逻辑
https://api.hcharts.cn/#plotOptions.series.events.legendItemClick
series: {
events: {
legendItemClick: function(e) {
var index = this.index;
var series = this.chart.series;
// 全部显示
var s
for (var i = 0; i < series.length; i++) {
s = series[i]
s.show()
}
return false;
}
}
},
网友评论