score:2

Accepted answer

two possible solutions:

  • it seems your libraries are not properly loading. try to pull them through cdn, and see if that works. i've tried to run this fiddle:

http://jsfiddle.net/25oqkhz7/11/

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/chart.js/2.7.2/chart.min.js"></script>

but i cannot get the data because of the cors.

  • this can also be the issue for you, if your local domain is not allowed to access data from that url in your ajax request, there's not much you could do with that url. you could download the data manually and reference it from some local file, but until your development domain is whitelisted, you cannot perform such get request.

what does your console.log() has to say? perhaps with more input, we could be more precise.


Related Query