Skip to content

Commit

Permalink
added tree image
Browse files Browse the repository at this point in the history
  • Loading branch information
zsunberg committed Sep 27, 2017
1 parent 186c719 commit 21b368d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ Pkg.clone("https://github.com/sisl/D3Trees.jl.git")
## Usage

```julia
children = [[2,3], [], [4], []]
children = [[2,3], [4,5], [6,7], [8,9], [1], [], [], [], []]
t = D3Tree(children)

inchrome(t)
```
or, for more options,
By clicking on the nodes, you can expand it to look like this:
![Tree](img/tree.png)

Or, for more options,
```julia
children = [[2,3], [], [4], []]
text = ["one\n(second line)", "2", "III", "four"]
Expand All @@ -41,3 +44,7 @@ inchrome(t)
```

or, see [examples/hello.ipynb](https://nbviewer.jupyter.org/github/sisl/D3Trees.jl/blob/master/examples/hello.ipynb)

## Browser compatibility

This package works best in the Google chrome or chromium browser.
Binary file added img/tree.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 21b368d

Please sign in to comment.