You must be logged in to post your query.
Home › Forums › Chart Support › Set maximum of a data series from the legend click event
Tagged: minimum maximum
I have tried various ways to set the maximum and minimum from the legend click event but nothing happens.
e.chart.axisY[0].maximum = 500;
Is it possible by other means?
@electricalbah,
You can achieve this by changing the minimum and maximum of the chart options on legend click and rendering the chart. Please take a look at this jsfiddle.
___________ Indranil Deo, Team CanvasJS
You must be logged in to reply to this topic. Login/Register