Skip to content
AESN edited this page Jun 21, 2017 · 3 revisions

Home > GoG Lib setup guide

Setting up GoG Lib is quite easy and straight forward:

  1. Clone GoG Lib repo git clone https://github.com/AESN/gog-lib.
  2. Include following scripts in the same order
<script src="dist/datalib.min.js"></script>
<script src="dist/d3.js"></script>
<script src="dist/jquery-2.2.3.min.js"></script>
<script src="dist/opencpu-0.4.js"></script>
<script src="dist/Canvas-Parser.js"></script>
<script src="gog-lib.js"></script>

initialize your canvas in body section such this

<canvas id="canvas1" width="1200" height="500"></canvas> define your own specification object as you want

<script>
    var specification = {
        //define your own work here
 };
</script>

call GoG_Parser(specification) to send specification object . GoG_Parser(specification);

That's it, you are ready to generate your awesome charts!

Note:

We don't claim the ownership of d3 neither the ownership of datalib,opencpu and jquery !

Clone this wiki locally