I'm using Highcharts with React and I'm trying to populate the chart with fetched JSON data.
The problem is that it won't populate correctly, maybe because the JSON is somewhat nested.
This works as expected:
https://codesandbox.io/s/6xm89n36m3
But as soon as I switch the JSON to something similar to my JSON, problem arrives. See the other fetch url in the link above.
I've tried to loop through the response with a for.each but it doesn't help. I've been logging the sh*t out of it and it seems to work behind the curtains but nothing is visible other than the correct amount of "entries" on the X-axis (in the example above 12 vs 3).
I struggle with finding similar topics, most of them are either with JQuery which I don't want to use or simply not any React at all.
Any takers?
Thanks!