Home Forums Chart Support Canvas JS issue with Angular5 for ColumnChart and StackedColumnChart Reply To: Canvas JS issue with Angular5 for ColumnChart and StackedColumnChart

#21247

@sadashiv,

The package that you are using through npm is not an official package but from a third party.

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’).

Out library works with all versions of Angular / AngularJS. Please take a look at this gallery page for examples on integrating CanvasJS in angular apps. Also take a look at this sample project for an example on adding CanvasJS in Angular 5 App.

Column Chart in Angular 5


Vishwas R
Team CanvasJS