I have a chart with multiple series which I would like to modify the options of, if two of the series have been disabled by clicking on the legend.
The following won't work as visible has the value of the state before it was clicked. Is there another way to do what I am trying to accomplish below?
plotOptions: {
series: {
events: {
legendItemClick: function(event) {
if(this.yAxis.series[0].visible && this.yAxis.series[1].visible) {
// do some action
}
}
}
}
},