1👍
✅
Seems like the chart is being made before the data is ready since loading the json is an async proces, you can either instantiate the chart in your second .then
when the data is available or create the chart as you do and then in the second .then
update the data in the chart and call the update
method
Source:stackexchange.com