Trouble passing API result to chart

đź‘Ť:1

I think the problem here is that fetch is an async call, it hasn’t finished before you create the chart. You need to do some kind of await before proceeding.

“Synchronous” fetch with async/await

Leave a comment