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

add preserveAspectRatio prop #1685

Merged
merged 6 commits into from
Sep 25, 2020
Merged

add preserveAspectRatio prop #1685

merged 6 commits into from
Sep 25, 2020

Conversation

boygirl
Copy link
Contributor

@boygirl boygirl commented Sep 23, 2020

This PR switches to height: "100%" from height: "auto" on VictoryContainer's outermost div, and adds support for a preserveAspectRatio prop that can be added to VictoryContainer to give users more control over how the chart fills its container:

Screen Shot 2020-09-24 at 3 36 57 PM

Screen Shot 2020-09-24 at 3 37 16 PM

closes #1684

@boygirl boygirl changed the title use height 100% add preserveAspectRatio prop Sep 23, 2020
@boygirl boygirl merged commit 4f74e52 into main Sep 25, 2020
@boygirl boygirl deleted the improvement/container-height branch September 25, 2020 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Making graph fill 100% width and height of parent element?
1 participant