+ 3
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
1 ответ
+ 2
Matin
If you have already solved your problem then please disregard this reply.
If not...
There are a couple of problems here, the first problem [xhr.status == 0], this is caused by CORS (cross-browser issues) you need to add https://cors-anywhere.herokuapp.com/ to the beginning of the URL to gain access.
Second, the URL provided leads to a download page, not to the raw JSON page.
https://code.sololearn.com/Wj7V9977v22b/#html