Home forums Using CanvasJS Making striplines clickable (link)

This topic contains 2 replies, has 2 voices, and was last updated by  gregoff 3 months, 1 week ago.

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

    gregoff
    Member

    Hi,

    I’m using striplines according to this page.

    stripLines

    Does anyone have any tips or tricks on how to make the actual areas clickable and send them to an another local url? In the example above, I would like to be able to click anywhere in the gray area.

    Any input would be greatly appreciated!

    Thanks!

    #15119

    Suyash Singh
    Moderator

    @gregoff,

    stripLines have bounds, which you can use to detect if the click event has happened within that region. And you can redirect to some page if its within the stripLines bound. Please check this jsfiddle.


    Suyash Singh
    Team CanvasJS

    #15129

    gregoff
    Member

    Hi,

    Looks like something I can work further on. Thanks!

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

You must be logged in to reply to this topic.