Home › forums › Using CanvasJS › adding an id to click
Tagged: click, event, id, popup
This topic contains 6 replies, has 2 voices, and was last updated by Manoj Mohan 3 weeks, 1 day ago.
is it possible to add an id to click event?? I want to open a popup and display data on clicking any column of the bar chart.
You can achieve your requirements by attaching click event handler to the dataPoint. Please refer this documentation page for more information along with a live example that you can try out.
If this doesn’t fulfill your requirements, kindly share an example and brief us more about your requirement so that we can understand your scenario better and help you out.
I shall add that. Meanwhile, can i know if it is possible to set column link on click to a local html file?
this is what I want to do. I have written in the comment after document.write()
You can trigger the popup/modal to show-up on clicking a datapoint. Please take a look at this JSFiddle for an example on showing Bootstrap modal on clicking on a datapoint.
thank you!! will this work with angular and clarity too?
Yes, it will work with frameworks like Angular, React, Vue, etc.
You must be logged in to reply to this topic.