dush-ik / d3-Graph-Api

Graph Api with D3

Home Page:https://dush-ik.github.io/d3-Graph-Api/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Graph Widget built with d3js.

Simple graph widget that can be embeded in html. It needs 5 parameters to draw graphs :

  • graphType, type of graph we want to draw.
  • graphId, HTML Id where we want to draw the graph.
  • graphHeight, Height of the graph.
  • graphWidth, Width of the graph.
  • jsonData, JSON data, an array of objects with two keys, where first key denotes abcissa and second key denotes ordinate.
let newGraphLayout = GraphApi.graphController();
newGraphLayout.createGraph({
  graphType: "Bar",
  garphId: "htmlId",
  graphHeight: "auto",
  graphWidth: "auto",
  jsonData: [{key1: value1, key2: value2}, ...]
});

About

Graph Api with D3

https://dush-ik.github.io/d3-Graph-Api/


Languages

Language:JavaScript 78.6%Language:HTML 21.4%