-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
various charts don't fit with auto-height and unsized div #1070
Labels
Milestone
Comments
gordonwoodhull
changed the title
pie chart doesn't fit with auto-heightand unsized div
pie chart doesn't fit with auto-height and unsized div
Dec 21, 2015
gordonwoodhull
changed the title
pie chart doesn't fit with auto-height and unsized div
various charts don't fit with auto-height and unsized div
Dec 21, 2015
Solution: only calculate the size once per render. Fixed in 2.0 beta 24. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using the feature to automatically determine the chart size (by not setting
width
/height
or setting them to null), and the containing div does not have an absolute size, the size of the pie can be calculated wrong and it gets clipped:This is because the SVG size is based on the div, then the div sizes to the SVG, and then when
.height()
gets read again in order to set the radius, now the auto-height is a little bigger.The text was updated successfully, but these errors were encountered: