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.
If in case usage in angular2 example here will be enough to understand, I can't say the same about simple install.
I have installed chart.js using
npm install chart.js --save
Next, I'm trying to import it with
import Chart from 'chart.js';
Immediately a problem - TS2307: Cannot find module 'chart.js'
It supposed to be simple, but module isn't even recognized after installation.
I guess, having point in name is a bad thing, but is there a way to pass through it (using Gruntfile.js maybe)?
P.S I saw examples with ng2-charts and I considering to use it, but as I understand, it still requires chart.js + I don't know if it allows to create mix charts (didn't saw any example yet)
npm install --save @types/chart.js?