nowthis / sankeymatic

Make Beautiful Flow Diagrams
http://sankeymatic.com/build/
ISC License
843 stars 122 forks source link

Don't automatically justify origins & endpoints #11

Closed nowthis closed 2 years ago

nowthis commented 8 years ago

The Sankey library used here lets us choose:

Give the user easy access to these controls.

nowthis commented 8 years ago

(Renamed this to be slightly clearer.)

The Sankey library currently always places all nodes with no predecessors ("origins") at the far left, and places all nodes without any targets ("endpoints") all the way to the right.

This doesn't actually have to happen; the algorithm does know exactly how far to the right or left a node has to be to fit in the diagram coherently.

This feature would add an on/off control for each type (origins & endpoints), letting users decide if they want the current behavior OR if they want to place nodes only as far left (and as far right) as they actually need to be to correctly represent the data.

nowthis commented 6 years ago

Planning to do this feature next.

imjeffp commented 5 years ago

+1 for this feature. This seems like one way for this to work: https://github.com/d3/d3-sankey#sankeyCenter

nowthis commented 3 years ago

(This feature was added in 2018 on the actual sankeymatic website but not checked in. I'll be resolving that missing piece and closing this soon.)