Home forums Chart Support “onClick(function)” functionality for the multiseries chart

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31677

    Hi, I am wondering if there is a way to execute a function when someone clicks the buttons on the bottom of the multi-series chart. These buttons, by default, make the corresponding line of data disappear when clicked and reappear when clicked again. I would like to execute my own functions when this happens while keeping the original functionality intact.

    #31687

    @danny32797,

    You can use legend itemclick to perform both hiding / unhiding dataseries and to add your own functionality along with that.

    If you are still facing issue, kindly create JSFiddle with your usecase and share it with us so that we can look into the code / chart-options being used, understand the scenario better and help you resolve.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.