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

allow maxSize to accept an accessor function #58

Open
davelandry opened this issue Apr 27, 2018 · 0 comments
Open

allow maxSize to accept an accessor function #58

davelandry opened this issue Apr 27, 2018 · 0 comments

Comments

@davelandry
Copy link
Member

Expected Behavior

Would be great if the maxSize could be determined based on the available space. For example, when creating an AxisBottom, the user should be supplied the available height for the axis, and if they want to make the maxSize half of the proposed height, they would pass the following:

.maxSize(d => d / 2)

Where d is the value of the internal variable being used for the overall height.

Current Behavior

Currently, it expects a pixel value.

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

No branches or pull requests

1 participant