Fork me on GitHub
jsGraph

Installation

jsGraph relies on jQuery to work. Load first the jQuery library before including the distribution file. jsGraph does not require any CSS file.

Loading in the tag

One option is to place the following scripts in the head tag of your HTML page. Loading jsGraph this way will expose the constructor window.Graph.

  

Loading as an AMD module

However you can also load jsGraph as an anonymous AMD module. Be sure that jQuery has been loaded as an AMD module as well or that "jquery" is defined in your path aliases.

require( [ 'jsGraph' ], function( Graph ) {
        // Use new Graph(); to create a graph;
} );