Home Forums Chart Support Call a function on any chart tooltip

Call a function on any chart tooltip

Viewing 4 posts - 1 through 4 (of 4 total)
  • #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.