Home forums Using CanvasJS Set maximum of a data series from the legend click event

This topic contains 1 reply, has 2 voices, and was last updated by  Indranil Deo 9 months, 4 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #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

    Indranil Deo
    Member

    @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.