Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding minNodeHeight and maxNodeHeight config option #122

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

solo29
Copy link

@solo29 solo29 commented Nov 12, 2023

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant