Home › forums › Using CanvasJS › Canvas JS issue with Angular5 for ColumnChart and StackedColumnChart › Reply To: Canvas JS issue with Angular5 for ColumnChart and StackedColumnChart
The package that you are using through npm is not an official package but from a third party. We don’t have official npm package published as of now.
You can download CanvasJS from our download page and save it (canvasjs.min.js) in source folder of your project (‘src/app’ or ‘src/app/assets/js’ or ‘src/app/lib’) and import the CanvasJS library to your app using import * as CanvasJS from './canvasjs.min' (path may vary based on file location like ‘./assets/js/canvasjs.min’ or ‘./lib/canvasjs.min’).
import * as CanvasJS from './canvasjs.min'
Please refer this sample project for adding CanvasJS in Angular 5 App.