You must be logged in to post your query.
Home › Forums › Chart Support › Making striplines clickable (link)
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!
@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
Looks like something I can work further on. Thanks!
You must be logged in to reply to this topic. Login/Register