Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/redsift/d3-rs-tree
- Owner: redsift
- License: mit
- Created: 2017-11-23T20:39:34.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-16T14:57:54.000Z (10 months ago)
- Last Synced: 2024-11-22T21:09:41.165Z (about 1 month ago)
- Language: HTML
- Size: 1.17 MB
- Stars: 0
- Watchers: 11
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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