Allow for setting an offset property in each alluvial node (dataset) that forces the offset value between said node and its previous node (previous in its column).
This property would overwrite the d3-sankeynodePadding option for only the nodes that have it.
Problem/motivation
In order to avoid confusing link overlaps, there are cases where it's better to set a hard offset distance between nodes.
Describe alternatives you've considered
Fork d3-sankey and rewrite the collision methods - too much effort and not sustainable
Additional context
This is useful together with custom curve functions.
Feature description
Allow for setting an
offset
property in each alluvial node (dataset) that forces the offset value between said node and its previous node (previous in its column).This property would overwrite the
d3-sankey
nodePadding
option for only the nodes that have it.Problem/motivation
In order to avoid confusing link overlaps, there are cases where it's better to set a hard offset distance between nodes.
Describe alternatives you've considered
d3-sankey
and rewrite the collision methods - too much effort and not sustainableAdditional context
This is useful together with custom curve functions.
Validations