Home › Forums › Chart Support › CanvasJs Chart in Angular 5 › Reply To: CanvasJs Chart in Angular 5
We don’t have official NPM package as of now. However, you can download the library from our download page & integrate Charts & StockCharts with all versions of Angular / AngularJS easily. Below are the steps to import CanvasJS to your app.
1. Save canvasjs.min.js within source-folder of your Angular application ( src or src/assets or src/lib ).
2. Import CanvasJS to your Angular app import * as CanvasJS from './canvasjs.min'; ( Remember to give the proper file-path if you have saved library in src/assets or src/lib, etc ).
import * as CanvasJS from './canvasjs.min';
Please take a look at this gallery page for more examples. You can also download Angular sample project from our download page that you can run locally.
Priyanka M S