cevepe
Posts: 8
Joined: Mon Sep 13, 2021 7:18 am

Url on each point from series data

He needed to make a clickable URL for each point in the chart. However, I need to load the URL from series data, where I have both the date and the data itself to which I would add the url.
How can I do this please?

Code: Select all

data: [[1677625200000,864],[1677711600000,3239],[1677798000000,3554],[1677884400000,286],[1677970800000,576],[1678057200000,524]]
jakub.s
Posts: 1233
Joined: Fri Dec 16, 2022 11:45 am

Re: Url on each point from series data

Hi,

Thanks for the question!

You could use series.point.events.click().

Here's a demo: https://jsfiddle.net/BlackLabel/bLgnwu0k/

Let me know if that's what you were looking for.

Best regards,
Jakub
Jakub
Highcharts Developer

Return to “Highcharts Usage”