Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.1 KB

getting-started.md

File metadata and controls

37 lines (24 loc) · 1.1 KB

Getting started

First of all, Welcome! ;)

Quick start

  1. A recommended way to install ng2-charts is through npm package manager using the following command:

npm i ng2-charts --save

  1. 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>
  1. 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>
  1. More information regarding using of ng2-charts is located in demo and demo sources.