Code Monkey home page Code Monkey logo

canvasjs-1's Introduction

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:

// 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:

// AMD
require('canvasjs/dist/canvasjs.js', function(CanvasJS){

       // Add your stuff here
});

Finally, you may also import it as a global dependence:

<script src="canvasjs/dist/canvasjs.js">

Then you can access the global variable CanvasJS.

** Note: dist folder also contains a minified version located at dist/canvasjs.min.js and ready for production, and also a wrapper for using it with jQuery.

Build

npm run build

Disclaimer

This repository just extends the original code by including new features and several fixes.

The original code can be found at http://canvasjs.com. It was released as CC for personal use and it needs to be licensed under commercial use - see terms here.

canvasjs-1's People

Contributors

tsur avatar

Watchers

David Rodin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.