Home › forums › Using CanvasJS › 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.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.