There are two Source files that come in the downloaded Zip folder
Download CanvasJS library from here. Extract the downloaded file and put the content in the same folder as the html file.
Include the file inside the <head> tag of your web page.
Create an HTML file in the same directory as the library and copy the following code into it.
Save the file, and Open it in a Browser. A Column Chart Should Render on the browser.
Install CanvasJS Charts Package from NPM package manager.
npm install @canvasjs/charts
As CanvasJS Charts package is installed, it can be imported using different module formats like AMD, CommonJS, etc.
import CanvasJS from '@canvasjs/charts';
Define a div (chart-container) where chart has to be rendered.
Create chart by passing the container-id of the div that you created in the previous step and chart-options. Once the chart is created, render the chart by calling chart.render();