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 the pie chart to redraw on resize or update. #910

Merged
merged 2 commits into from Dec 21, 2012

Conversation

dnschnur
Copy link
Member

Fixed a couple of logic bugs that prevented pies from being redrawn.

Previously the container dimensions were checked only once, which
prevented the pie from changing in size as its container was resized.
When a pie's labels don't fit within its container, the pie is redrawn
with a smaller radius until the labels fit, or a fixed number of retry
attempts are exhausted. The redraw flag was not reset on success,
however, which prevented the pie from being redrawn again after a resize
or update.
@ghost ghost assigned dnschnur Dec 21, 2012
@dnschnur
Copy link
Member Author

This resolves #656; pies can now be resized just like any other plot type.

dnschnur added a commit that referenced this pull request Dec 21, 2012
Allow the pie chart to redraw on resize or update.
@dnschnur dnschnur merged commit f0652fd into flot:master Dec 21, 2012
@dnschnur dnschnur deleted the pie-resize-fix branch December 21, 2012 21:12
dnschnur added a commit that referenced this pull request Dec 21, 2012
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.

None yet

1 participant