cspence001
Posts: 6
Joined: Mon May 03, 2021 11:20 pm

multiple charts with same dates loop through array indice

Hi - I'm trying to render 3 synchronized charts with range selector for data with same date range but multiple data inputs. So - each chart shows same date range on x axis and y axis input is different on each chart.
So far each chart with date range renders but only data from first indice renders on each. Trying to figure out how I can cite each indice [1][2][3] for each chart from my json array.

code:
https://jsfiddle.net/cspence001/kw7v8L3z/1/

json data:
https://ibb.co/RjNnW92

output so far:
https://ibb.co/6vFhDjT
Attachments
Screen Shot 2021-05-03 at 7.26.52 PM.png
Screen Shot 2021-05-03 at 7.26.52 PM.png (32.58 KiB) Viewed 697 times
pawelys
Posts: 962
Joined: Wed Sep 02, 2020 10:37 am

Re: multiple charts with same dates loop through array indice

Hello, welcome to the official highcharts forum, and thanks for contacting us with your question! the demo, you shared doesn't work, but check this demo, and let me know, if it is what you were trying to achieve: https://jsfiddle.net/BlackLabel/txepfnzk/

In case of any further questions feel free to contact us again! Kind regards,
Paweł Lysy
Highcharts Developer
cspence001
Posts: 6
Joined: Mon May 03, 2021 11:20 pm

Re: multiple charts with same dates loop through array indice

hi @pawelys -

Just what I was looking for, here's a deploy - https://final-reddit.herokuapp.com/ :)
pawelys
Posts: 962
Joined: Wed Sep 02, 2020 10:37 am

Re: multiple charts with same dates loop through array indice

Good to hear! In case of any further questions feel free to contact us again! Kind regards,
Paweł Lysy
Highcharts Developer

Return to “Highcharts Stock”