econnomnomnom
Posts: 9
Joined: Fri Oct 08, 2021 7:17 am

Synchronized chart with hard-coded data

I know this should be simple but I am really struggling to modify the demo for the highcharts synchronized chart to used hard coded data. So, instead of the json/ajax bit in the demo, I want to be able to use use something like

name: line 1
data: [ 1,2,3,4,5]
...


name: line 2
data:[6,7,8,9,10]


etc.


How can i do this?
User avatar
dawid.d
Posts: 807
Joined: Thu Oct 06, 2022 11:31 am

Re: Synchronized chart with hard-coded data

Hello,

Thanks for contacting us with your question!

If you don't want to change anything else, the easiest way is to define an array, e.g. rawData (as in the demo below) and fill it with the data you want.

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

If I may clarify any issues/matters I am available at your convenience.
Best regards!
Dawid Draguła
Highcharts Developer

Return to “Highcharts Usage”