Home Forums Chart Support adding an id to click

adding an id to click

Viewing 7 posts - 1 through 7 (of 7 total)
  • #26912

    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.

    #26920

    @mithunhegde,

    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.

    —-
    Manoj Mohan
    Team CanvasJS

    #26921

    I shall add that. Meanwhile, can i know if it is possible to set column link on click to a local html file?

    #26927

    this is what I want to do. I have written in the comment after document.write()

    #26931

    @mithunhegde,

    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.

    —-
    Manoj Mohan
    Team CanvasJS

    #26935

    thank you!! will this work with angular and clarity too?

    #26942

    @mithunhegde,

    Yes, it will work with frameworks like Angular, React, Vue, etc.

    —-
    Manoj Mohan
    Team CanvasJS

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

You must be logged in to reply to this topic.