Draw something
For the impatients, here's how to get a graph displayed on your webpage with some data on it.
var someData = [ 1, 100, 2, 80, 3, 55, 4, 65 ];
require( [ 'jsGraph' ], function( Graph ) {
var dom = document.getElementById( "someId" );
// Create a new graph
var g = new Graph( dom );
g.newSerie().setData( someData );
g.redraw();
g.drawSeries();
} );
Nothing exceptional so far. Take some time to learn how to customize your graph, its axis and the series. Look up how to load plugins that allow mouse interaction. Read about drawing shapes or legends further along this documentation.
If reading documentation is not your thing, you may want to skip it and browse the multiple examples we have already prepared. Share with us your beautiful graphs !