Home forums Using CanvasJS Can we define a tooltip click event?

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  shv22 1 month, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15128

    shv22
    Member

    Hi, I am using different properties of tooltip like cornerRadius, animationEnabled, shared, contentFormatter. Is there any property which helps us to define click event on tooltip also?

    #15133

    Suyash Singh
    Moderator

    @shv22,

    You can do so by placing any HTML element (div, button etc.) in the toolTip content and attaching click event handler to it. Please, have a look at this jsfiddle.

    ___
    Suyash Singh
    Team CanvasJS

    #15136

    shv22
    Member

    Thanks for the fiddle. This helps me a lot.

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

You must be logged in to reply to this topic.