Home Forums Chart Support Making striplines clickable (link)

Making striplines clickable (link)

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

    Hi,

    I’m using striplines according to this page.

    https://canvasjs.com/docs/charts/chart-options/axisx/strip-trend-lines/

    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

    @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

    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.