I am trying to dynamically set the range of the YAxis when the user click on the chart legend as follows, and it is not working. Although the code is successfully being executed and the axisY.minimum and axisY.maximum values are properly being set, the graph itself does not display the new dynamically set axisY range. Any ideas?
legend: {
cursor: “pointer”,
itemclick: function (e) {
if ((typeof (e.dataSeries.name) === “undefined”) || (e.dataSeries.name === “DataSeries A”))
{
chart.axisY.minimum = 1000;
chart.axisY.maximum = 3000;
}
else if (e.dataSeries.name === “DataSeries B”) {
chart.axisY.minimum = -200;
chart.axisY.maximum = 200;
}
chart.render();
}
}