canvasjs

CanvasJS charting library

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
canvasjs
37351.8.34 years ago8 years agoMinified + gzip package size for canvasjs in KB

Readme

CanvasJS, as depicted in its official website, is a charting library:
CanvasJS is an easy to use JavaScript & HTML5 Charts library built on Canvas element. It runs across devices including iPhone, iPad, Android, Windows Phone, Microsoft Surface, Desktops, etc. This allows you to create rich dashboards that work on all the devices without compromising on maintainability or functionality of your web application. CanvasJS comes with beautiful themes and is over 10x faster than conventional Flash and SVG Charts – resulting in lightweight, beautiful and responsive dashboards.

Download

``` npm install canvasjs ```

Getting Started

First of all, you need to import it. This can be achieved in different ways depending up on what module definition pattern your application is using. The CanvasJS package works by default with CommonJS so you can use it with browserify/webpack as shown below: ```js // CommonJS var CanvasJS = require('canvasjs'); // If you are using ES6, then import CanvasJS from 'canvasjs'; ``` It is also possible to use it with AMD loaders as Require.js. If so, you can import it this way: ```js // AMD require('canvasjs/dist/canvasjs.js', function(CanvasJS){
// Add your stuff here
}); ``` Finally, you may also import it as a global dependence: ```html