Halsey
Posts: 26
Joined: Sun Aug 02, 2020 1:37 pm

Live data

Hi,i want to make a web project about pollution and i want to make this kind of map that show me the evolution of parameters in a period of time.
Ex:
Image
.I didn't find any methods to do this,can you please help me?
Attachments
ex.png
ex.png (71.54 KiB) Viewed 537 times
karolkolodziej
Posts: 895
Joined: Mon Mar 02, 2020 10:11 am

Re: Live data

Hi!
Thanks for contacting us!

I don't know how you get the data, but using the setData method you can update the series.
I generated it randomly, but you can prepare that data somehow and then update.
API: https://api.highcharts.com/class-refere ... es#setData

Live demo: https://jsfiddle.net/BlackLabel/wqxLke0s/

Let me know if that was what you were looking for!
Regards!
Halsey
Posts: 26
Joined: Sun Aug 02, 2020 1:37 pm

Re: Live data

Yes ,but how can i do this in angular?
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: Live data

Hello Halsey,

Using setData method is not a good idea in angular. Instead of it, we can update data series by updating chartOptions. I prepared an angular demo for you here: https://stackblitz.com/edit/highcharts- ... mponent.ts

Let me know if you have any further questions!
Best regards.
Dominik Chudy
Highcharts Developer

Return to “Highcharts Maps”