Using the Chart.js

I need to use new chart.js to render the pie charts. However, I don’t know how to use it,

these are the steps I followed:

  1. Install node.js from installer then restart
  2. in command prompt: npm install npm -g
  3. add the canvas id to the place where you want to see the chart
  4. add the script for the chart

    1. ……………………………..}

new Chart is the constructor for the chart.

 

Leave a Reply

Your email address will not be published. Required fields are marked *