You must be logged in to post your query.
Home › Forums › Feature Requests & Feedback › Dynamically Setting the YAxis Range
Tagged: yaxis
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(); } }
oneworld
Can you please create a jsFiddle so that we can understand the issue in better way?
You must be logged in to reply to this topic. Login/Register