To begin, letâs make an asynchronous call to our Code Resource using the getJSON() Jquery method. To learn more, see our tips on writing great â¦ The data comes as a JSON object. Listing 5. aData has the data for X-Axis labels and aData has the data for Y-Axis correspondingly. You can learn more about the query format here. Fork. Finally, here is the code for laravel blade template file chartjs.blade.php: I made laravel controller array data into json format for chartjs data: I recently had my first experience working with Chart.js and React. Django application with User and ActivityPeriod models, write a custom management command to populate the database with some dummy data, and design an API to serve that data in the json format given above.