install chartjs angular code example Example 1: install package chart.js npm install chart.js --save Example 2: chart.js npm install npm install chart.js --save