An interactive version of a Reingold–Tilford tree. Click on the nodes to expand or collapse.
configurations { | |
// ebean enhance 用の configuration を宣言 | |
enhance | |
} | |
dependencies { | |
// ebean enhance 用の dependency を追加 | |
enhance 'org.avaje.ebeanorm:avaje-ebeanorm-agent:4.9.1' | |
} |
{ | |
"name": "domain", | |
"children": [ | |
{ | |
"name": "Level", | |
"children": [ | |
{ | |
"name": "id", | |
"children": [ | |
{ |
This example pulls together various examples of work with trees in D3.js.
The panning functionality can certainly be improved in my opinion and I would be thrilled to see better solutions contributed.
One can do all manner of housekeeping or server related calls on the drop event to manage a remote tree dataset for example.
Dragging can be performed on any node other than root (flare). Dropping can be done on any node.
Panning can either be done by dragging an empty part of the SVG around or dragging a node towards an edge.
Click on any package to zoom in or out. See also this static circle packing example.
Enclosure diagrams use containment to represent the hierarchy. Although circle packing is not as space-efficient as a treemap, it better reveals the hierarchy. Implementation based on work by Jeff Heer. Data shows the Flare class hierarchy, also courtesy Jeff Heer.
See also this zoomable version.
- id: 0 | |
date: 2015-01-05 | |
name: 開業 | |
dr: | |
預金: 2400 | |
cr: | |
元入金: 2400 | |
- id: 1 | |
date: 2015-01-20 |