-
Notifications
You must be signed in to change notification settings - Fork 719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional hierarchy layouts #172
Comments
Wonderful! these will be excellent and much needed additions.
I'm happy to do this.
Good idea. I can add this as well. Will try to find some fun data.
I like the separate components instead of trying to overload a simple general component. I see your point though and will give this some more thought.
super agree with this. i will update all of the different layout components in Thanks for this! 🙌 |
One thing I just remembered, in Maybe worth separating out a |
@hshoff Don't miss this comment above ;) |
I created three new vx components for the remainder of the d3-hierarchy layouts.
<Pack />
<Partition />
Grid
Sunburst
<Treemap />
Recommended API change
data
to children render function for all hierarchy components instead of callingdata.links()
,data.descendants()
,data.leaves()
and passing each of them explicitly. I haven't measured, but I'm expecting an incurred cost for each call, and don't expect a user to need bothdescendants
orleaves
in the same visualization, for example.I'll try to submit a PR with these 3 new layout components to vx-hierarchy package, but maybe someone else could create some prettier examples for the gallery than my d3 ported ones? It would also probably be good to put some hierarchical data in vx-mock (maybe the
flare.json
that d3 uses). It would also be nice to probably create a data generator for this type of data.I'm next going to start looking at creating an orthogonal link, useful for brackets and possible a curved layout (see this vega example and change the link type). A 45deg elbow would be nice as well. I'm not sure if all of these should be separate components like
LinkHorizontal
,LinkVertical
, andLinkRadial
or just atype
prop (or something) such as<LinkHorizontal type="orthogonal" />
. Thoughts?The text was updated successfully, but these errors were encountered: