jrrera / ubiome-to-d3

A simple script to convert uBiome's export data into a D3 tree visualization.
MIT License
6 stars 0 forks source link

A small utility for converting uBiome's JSON data export into a user friendly tree graph.

Usage:

The ubiometree function takes two arguments:

Example:

// CommonJS / Browserify
var d3 = require('d3');
var ubiometree = require('./ubiome-d3-tree');
ubiometree('static/microbiome.json', '#graph-div'); 

// Non-CommonJS, use globals. Requires D3.
ubiometree('static/microbiome.json', '#graph-div');

To view an example, first run bower install, fire up a local server (e.g. python -m SimpleHTTPServer 8081) and open example/index.html.

Questions? Issues? Let me know!