Home Forums Chart Support Set maximum of a data series from the legend click event

Set maximum of a data series from the legend click event

Viewing 2 posts - 1 through 2 (of 2 total)
  • #19683

    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?

    #19686

    @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

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.