Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/redsift/d3-rs-tree

Tree layout
https://github.com/redsift/d3-rs-tree

Last synced: 23 days ago
JSON representation

Tree layout

Awesome Lists containing this project

README

        

# d3-rs-tree

[![Circle CI](https://img.shields.io/circleci/project/redsift/d3-rs-tree.svg?style=flat-square)](https://circleci.com/gh/redsift/d3-rs-tree)
[![npm](https://img.shields.io/npm/v/@redsift/d3-rs-tree.svg?style=flat-square)](https://www.npmjs.com/package/@redsift/d3-rs-tree)
[![MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/redsift/d3-rs-tree/master/LICENSE)

`d3-rs-tree` generate a Reingold–Tilford tree via the D3 reusable chart convention.

## Example

[View @redsift/d3-rs-tree on Codepen](http://codepen.io/collection/DgkEpa/)

### Line chart

![Sample bars with a bottom orientation](https://bricks.redsift.cloud/reusable/d3-rs-tree.svg?_datum=[1,200,3100,1000]&orientation=bottom)

### Multiple series

![Sample bars with a left orientation](https://bricks.redsift.cloud/reusable/d3-rs-tree.svg?_datum=[[1,2,4],[0,1]])

## Usage

### Browser



var chart = d3_rs_tree.html();
d3.select('body').datum([ 1, 2, 3, 10, 100 ]).call(chart);

### ES6

import { html as chart } from "@redsift/d3-rs-tree";
let eml = chart();
...

### Require

var chart = require("@redsift/d3-rs-tree");
var eml = chart.html();
...

## TODO