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

Force chart to 100% of Parent's Div? #27

Closed
alc32 opened this issue Aug 9, 2018 · 1 comment
Closed

Force chart to 100% of Parent's Div? #27

alc32 opened this issue Aug 9, 2018 · 1 comment

Comments

@alc32
Copy link

alc32 commented Aug 9, 2018

Tried height: '100%', Is there any way to make the chart height-responsive?

@junedchhipa
Copy link
Contributor

junedchhipa commented Aug 9, 2018

If you do give height: 100%, the chart gets the parent element's height and sets the fixed height - which doesn't change when width changes.

So, setting height: 100% doesn't actually makes it responsive but makes the chart fill the available height which is set by parent div. It's more of a CSS configuration.

To make it responsive, only width: 100% should be set and height should be left out.

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

No branches or pull requests

2 participants