Sankey nodeAlign?
See original GitHub issueCurious if there are any plans to merge the more recent d3-sankey
support for node alignment (from this commit, June 13 of this year) into your fork? It’s a really useful feature that I’d love to be able to use with your great wrapper.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:8
- Comments:20 (9 by maintainers)
Top Results From Across the Web
How to change alignment of nodes in a Sankey diagram using ...
The alignment of d3.sankey can be configured using .nodeAlign() , and for your requirement, you will need .nodeAlign(d3.sankeyLeft).
Read more >Sankey Diagram
schemeCategory10); var sankey = d3.sankey() . ... nodeAlign(d3. ... + "\n" + format(d.value); }); node = node .data(data.sankey.nodes) ...
Read more >Sankey Layout Alignment - GitHub Gist
// Iteratively assign the breadth (x-position) for each node. // Nodes are assigned the maximum breadth of incoming neighbors plus one;. // nodes...
Read more >Sankey Diagram / D3 - Observable
Convert nodeAlign from a name to a function (since d3-sankey is not part of core d3). if (typeof nodeAlign !== "function") nodeAlign =...
Read more >@plotly/d3-sankey - npm Package Health Analysis | Snyk
nodeAlign ([align]) <>. If align is specified, sets the node alignment method the specified function and returns this Sankey generator.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
would be great to have this option! when visualizing process flows, it makes no sense that the terminal nodes are all on the right of the viz (as for those which did not pass the whole process, they should not be on the same level as all the nodes which did).
@harisbal thank you for the link showing how to use ranksets. This is a really handy feature when one wants to order their sankey data according to a temporal layout - for example when plotting the evolution of communities that appear and disappear over time.