d3 / d3-hierarchy

2D layout algorithms for visualizing hierarchical data.
https://d3js.org/d3-hierarchy
ISC License
1.13k stars 315 forks source link

WIP: Add StackedTree Layout #173

Open martialblog opened 3 years ago

martialblog commented 3 years ago

Hello,

I'd like to propose a new tree layout named Stacked Trees based on Bisson and Blanch (2012). It's similar to the cluster layout and tries to be a more compact version for very large hierarchical clusters.

stackedtree-bisson

Bisson, G., & Blanch, R. (2012, July). Improving visualization of large hierarchical clustering. In 2012 16th International Conference on Information Visualisation (pp. 220-228). IEEE.

Example usage: https://observablehq.com/@martialblog/d3-stacked-tree

I wanted to maybe get some feedback and incorporate changes before writing a test. I can update the PR accordingly.

Regards, Markus

mshd commented 3 years ago

Hi Markus, this is a great addition and I support this PR. We're working on a tree visualization and would be happy to have to feature too. I was thinking about visualization like this. I have already tried to use your branch, but it doesn't quite turn out the way I like it. I would like to stack the children (see example tree). We're happy to contribute to make it better!

mshd commented 2 years ago

We have made our own package, will implement this soon. have a look at https://github.com/codeledge/entitree-flex