[Chartjs]-Chart.js not showing correctly/install issues

2👍

Based on the supplied fiddle in your comment, but not on your question, you had a few problems:

  1. You had HTML <script> tags in the JavaScript section of the fiddle.
  2. You were loading Chart.js with <script type="text/javascript" src="chart.js/Chart.js"></script>, where there is no chart.js/Chart.js on JSFiddle (also myjs.js doesn’t not exist on their servers).
  3. You had var skillsChart = new Chart(context).Pie(data); before your pieData array, and not after.
  4. var skillsChart = new Chart(context).Pie(data); should have been var skillsChart = new Chart(context).Pie(pieData); as your array is called pieData, not data.

See this fiddle.

Hope this helped! 🙂

Leave a comment