Home forums Using CanvasJS Call a function on any chart tooltip

This topic contains 3 replies, has 2 voices, and was last updated by  Vishwas R 2 months, 4 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26505

    Is there a way to call a function when you either hover on a chart value or within tooltip? Suppose I have bar chart and line chart together. What I want is to view certain details when I click on the line chart entries. Is this possible?

    #26517

    Sudha,

    You can use click event of dataSeries to get information related to dataPoint on clicking it. Please refer documentation for more information.

    If this doesn’t help you fulfill your requirements, kindly share JSFiddle or an example and brief us more so that we can understand it better and help you out.


    Vishwas R
    Team CanvasJS

    #26535

    Hi Vishwas,

    Can you please provide the link to the documentation that you are mentioning here?

    Thanks,
    Sudha

    #26536

    Sudha,

    Please refer this link (https://canvasjs.com/docs/charts/chart-options/data/click/) for documentation on click event.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.