max-mapper / biofabric

a client side module for generating biofabric graphs in svg using d3

Home Page:http://maxogden.github.io/biofabric/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

biofabric

a module for generating biofabric graphs using d3. adapted from this example and made more abstract

graph

You will most likely have to do edits to the code to get your graph to render beautifully as the original code this was adapted from was designed around the miserables.json data.

usage

var fabric = require('biofabric')
fabric(graph, {width: 1400})

graph should be a JS object like this:

{
  "nodes":[
    {"name":"Bob","group":1},
    {"name":"Alice","group":2}
  ],
  "links":[
    {"source":1,"target":0,"value":1}
  ]
}

About

a client side module for generating biofabric graphs in svg using d3

http://maxogden.github.io/biofabric/

License:Other


Languages

Language:JavaScript 99.3%Language:HTML 0.7%