I've installed ng2-charts using npm
npm install ng2-charts --save
and npm install chart.js --save
then added below into index.html
<script src="node_modules/chart.js/src/chart.js"></script>
and then added below to app.module.ts import { ChartsModule } from 'ng2-charts';
imports: [
ChartsModule
]
but I'm getting ZoneAwareError while checking in console, I'm using angular 2.4.1 version. What is the correct way to install charts.js into angular 2? Surprisingly, despite chart.js being so popular, I didn't found neither documentation about its installation in angular2, neither a simple example of its usage there.