d3-sankey icon indicating copy to clipboard operation
d3-sankey copied to clipboard

adding minNodeHeight and maxNodeHeight config option

Open solo29 opened this issue 2 years ago • 0 comments

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 minNodeHeight option to set the minimum height of a node.
  • Added maxNodeHeight option to set the maximum height of a node.

Example Usage

const sankey = d3.sankey() .nodeWidth(15) .nodePadding(10) .minNodeHeight(30) .maxNodeHeight(90);

solo29 avatar Nov 12 '23 20:11 solo29