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

Images at the top of the chart by chart values

I have a line graph of temperature with a value every 5 minutes. I need to insert an icon at the top of the graph every 60 minutes according to the temperature values. The icons will be: freezing, cold, warm, the warmest.
The data is inserted into series -> data:

data: [[1679330100000,-11.9],[1679330400000,2.2],[1679330700000,2.2],[1679331000000,4.1] ......

Can you advise me please?
jakub.j
Posts: 1091
Joined: Tue Jan 24, 2023 11:14 am

Re: Images at the top of the chart by chart values

Thanks for contacting us with your question!

You can add the images to a point using chart.annotations

I prepared a live demo where I render two different icons every 10 minutes depending on the temperature.

Demo: https://jsfiddle.net/BlackLabel/xp68rf24/

Let me know if that was what you were looking for!
Best regards
Jakub

Return to “Highcharts Usage”