-
Notifications
You must be signed in to change notification settings - Fork 4
Setting up GoG Lib
AESN edited this page Jun 21, 2017
·
3 revisions
Setting up GoG Lib is quite easy and straight forward:
- Clone GoG Lib repo
git clone https://github.com/AESN/gog-lib
. - 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 !