1
I completely neglected the asynchronous nature of AJAX, and did not enclose my script in an async
call. This stackoverflow question/answer provided me with enough insight to move on. It should be noted that global arrays behavior differently when they are assigned values inside a scoped function.
- Chartjs-Lazy loaded modules share same dependencies?
- Chartjs-How to show label for second y-axis in charts.js?
Source:stackexchange.com