Displaying JSON data in Chartjs from external JSON File without JQuery

I’m Trying to Display JSON Data in Chart.js But I Can’t Find a way to use the actual_JSON Variable (wich is my json file as object) in chart , because it’s local. can someone help me in this ?

Here’s My Code : https://code.sololearn.com/Wtd0bxZFsK07/?ref=app

The best place for such questions is stackoverflow.

2 Likes

You can simply use jQuery getJSON method to fetch this json from external file and display it to the users in your View.