Allow chart option toggling
Would be great if you could change/toggle certain chart options (for example in response to a user zooming or clicking a checkbox)
For example, I'd like to have this as my zoom selection code:
events: {
selection: function(event) {
if (event.xAxis) {
if ([marker condition]) {
this.options.plotOptions.series.marker.enabled = true;
}
else
this.options.plotOptions.series.marker.enabled = false;
} else {
this.options.plotOptions.series.marker.enabled = false;
}
}
}
But currently, setting the enabled flag does nothing.
Some useful options to toggle would be:
chart.options.tooltip.enabled = false;
chart.options.plotOptions.series.marker.enabled = false;
chart.options.plotOptions.series.shadow = false;
chart.options.zoomType = '';
I'm sure there are others too.
![](https://secure.gravatar.com/avatar/d102640773499777f601430d968c0007?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)