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.