d3-sankey
d3-sankey copied to clipboard
adding minNodeHeight and maxNodeHeight config option
This commit introduces two new configuration options, minNodeHeight and maxNodeHeight, allowing users to specify the minimum and maximum height for a node.
The addition of these options enhances the flexibility of our system by providing users with granular control over the vertical dimensions of individual nodes. This is particularly useful in scenarios where specific height constraints are necessary for layout and design considerations.
- Added
minNodeHeightoption to set the minimum height of a node. - Added
maxNodeHeightoption to set the maximum height of a node.
Example Usage
const sankey = d3.sankey() .nodeWidth(15) .nodePadding(10) .minNodeHeight(30) .maxNodeHeight(90);