- A recommended way to install ng2-charts is through npm package manager using the following command:
npm i ng2-charts --save
- A way to install Chart.js component is through package manager using the following command:
npm install chart.js --save
# or
bower install Chart.js --save
Alternatively, you can download it in a ZIP file.
After Chart.js component is downloaded, embed the code into your project.
<script src="bower_components/Chart.js/Chart.min.js"></script>
<!--or-->
<script src="node_modules/chart.js/Chart.min.js"></script>
- Or you can link
charts.js
at cdn
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.min.js"></script>
- More information regarding using of ng2-charts is located in demo and demo sources.