You must be logged in to post your query.
Home › Forums › Chart Support › CanvasJS NPM module
Is there any official npm module for CanvasJS? If not, can it be available?
@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';
import * as CanvasJS from './canvasjs.min';
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.
__________ Indrail Deo Team CanvasJS
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
You must be logged in to reply to this topic. Login/Register