Expanding width of a channel as it moves to another stage? #61
AlanKrueger
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
Hi, thx for the suggestion. I would be open to good implementations via a Pull Request tho. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Looking at the source, it looks like you're using https://github.com/ricklupton/d3-sankey-diagram as the underlying diagramming library. I'm assuming I'd probably need to raise this issue there. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Most Sankey diagrams track populations of things that are fairly immutable, like currency units and people, things like can't be added to or subtracted from without incoming or outgoing channels on the graph to explain them.
What happens, though, when you have a population that could multiply at different stages? How might that be represented in one of these diagrams, and would that be possible to accomplish with this tool?
For instances, say you're tracking six-packs of soda and you have something like this:
Clearly this doesn't line up, but suppose the Second Stage splits the six-packs into individual cans. The amount in equals the amount out, but there's a different unit involved.
I could probably make this work if there was a way to have separate input and output counts for a given line, something like this:
This last line indicates that 80 of the things from the second stage result in 480 items reaching the third stage. The resulting graph could be sized on one side to 80 and on the other side to 480, with labels on both sides to indicate the amounts.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions