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.
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?
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.
Can you please provide the link to the documentation that you are mentioning here?
Please refer this link (https://canvasjs.com/docs/charts/chart-options/data/click/) for documentation on click event.
You must be logged in to reply to this topic.