Home Forums Chart Support CanvasJS NPM module

CanvasJS NPM module

Viewing 3 posts - 1 through 3 (of 3 total)
  • #19975

    Is there any official npm module for CanvasJS?
    If not, can it be available?

    #19985

    @himanshu_tanwar,

    We currently have plans for building and publishing npm package but no definite timeline yet. However, CanvasJS can be easily imported as a module to any of the front-end frameworks like React, Angular, Vuejs, etc. Below are the steps to import CanvasJS Chart / StockChart.
    1. Save canvasjs.min.js (canvasjs.stock.min.js incase of StockChart) within source-folder of your application.
    2. Import the library into your app.
    For Chart: import * as CanvasJS from './canvasjs.min';
    For StockChart: import * as CanvasJS from './canvasjs.stock.min';

    Once it’s imported, you are ready to go. Now you can create Chart / StockChart, pass options & render them.

    In case you are integrating CanvasJS in React you can check this documentation page for step to step instructions on the integration process.

    react column chart

    __________
    Indrail Deo
    Team CanvasJS

    #42729

    @himanshu_tanwar,

    We have just added CanvasJS Chart & StockChart packages to NPM registry. Now, you can add our charts & stockcharts to your application via NPM. Please refer to the release blog for more information. Please check out our NPM package and let us know your feedback.


    Thangaraj Raman,
    Team CanvasJS

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

You must be logged in to reply to this topic.