chartjs-ng2
Version:
Reactive, responsive, beautiful charts for Angular2 based on Chart.js
26 lines (18 loc) • 812 B
Markdown
### Installation
1. You can install ***ng2-charts*** using npm
```bash
npm install ng2-charts --save
```
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))
```bash
npm install chart.js --save
```
**Important**: Embedding `Chart.js` in application is mandatory!
```html
<script src="node_modules/chart.js/src/chart.js"></script>
```
### Usage
Demo and API details of ***ng2-charts*** can be found here:
[source code](https://github.com/valor-software/ng2-charts/tree/master/demo).
### System.js
System.js bundles can be found in `bundles` directory of npm package or at [npm cdn](https://npmcdn.com/ng2-charts/bundles/)