Download, install and run jsGraph in a nutshell
jsGraph can be downloaded and installed manually or via a package manager, such as npm or bower. The project is hosted on Github and the distribution files can be found there. jsGraph has no dependencies and can be utilized without jQuery.
The full-featured, compact version of jsGraph, shipped with all plugins, shapes and series available
The source code without ES6 transpilation. Targets ES6-compatible browsers for specific applications
The compiled but not uglified source code can be used for testing purposes and bug reporting
The project is hosted on Github, for those who want to contribute to the project. Come check it out !
Installing jsGraph from npm is an easy way to install jsGraph and keep it up to date
npm install node-jsgraph --save-dev
Alternatively, jsGraph is also available from the bower package manager
bower install jsgraph
jsGraph is available both for direct inclusion or as an anonymous AMD module loadable with [requirejs](http://requirejs.org). It does not rely on external libraries, therefore does not necessarily have to be loaded after jQuery, for example.
Simply paste the script inclusion tag anywhere in your webpage. jsGraph loads synchronously, so if you place it the header part of your page, it will be readily available in the other scripts. When loaded manually, jsGraph creates a unique global object named
Graph - the graph constructor - available from the
If you are using a AMD structure using requirejs or other, jsGraph will register itself as an anonymous module. To load it, just use:
In this case, the Graph object is not exposed to the
window element anymore.
Creating a graph requires only a few lines of code, which involve:
Which translates into the following code: