Home Forums Chart Support CanvasJs Chart in Angular 5

CanvasJs Chart in Angular 5

Viewing 2 posts - 1 through 2 (of 2 total)
  • #22132

    Hi,

    How can I create a graph using canvasjs in Angular 5?
    By npm install …

    #22137

    @mhdajmalik,

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

    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.

    Basic Column Chart in Angular

    __
    Priyanka M S
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.