1 | ### Installation
|
2 |
|
3 | 1. You can install ***ng2-charts*** using npm
|
4 |
|
5 | ```bash
|
6 | npm install ng2-charts --save
|
7 | ```
|
8 | 2. You need to install and include `Chart.js` library in application via `html` or `webpack bundler` (more options can be found in official `chart.js` [documentation](http://www.chartjs.org/docs/#getting-started))
|
9 |
|
10 | ```bash
|
11 | npm install chart.js --save
|
12 | ```
|
13 |
|
14 | **Important**: Embedding `Chart.js` in application is mandatory!
|
15 |
|
16 | ```html
|
17 | <script src="node_modules/chart.js/src/chart.js"></script>
|
18 | ```
|
19 | ### Usage
|
20 | Demo and API details of ***ng2-charts*** can be found here:
|
21 | [source code](https://github.com/valor-software/ng2-charts/tree/master/demo).
|
22 |
|
23 | ### System.js
|
24 |
|
25 | System.js bundles can be found in `bundles` directory of npm package or at [npm cdn](https://npmcdn.com/ng2-charts/bundles/)
|
26 |
|
\ | No newline at end of file |