Home › forums › Using CanvasJS › Set maximum of a data series from the legend click event
Tagged: minimum maximum
This topic contains 1 reply, has 2 voices, and was last updated by Indranil Deo 1 year, 8 months ago.
I have tried various ways to set the maximum and minimum from the legend click event but nothing happens.
e.chart.axisY.maximum = 500;
Is it possible by other means?
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.
You must be logged in to reply to this topic.