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

[BUG] Resizing a Pie chart with padding will fail to render all legend items #4112

Closed
WebeWizard opened this issue Apr 5, 2017 · 1 comment · Fixed by #5816
Closed

[BUG] Resizing a Pie chart with padding will fail to render all legend items #4112

WebeWizard opened this issue Apr 5, 2017 · 1 comment · Fixed by #5816
Milestone

Comments

@WebeWizard
Copy link

Expected Behavior

Resizing a pie chart with padding should shift and resize all legend items so that they remain visible.

Current Behavior

If you add padding to the chart, and start to resize the window, the legend items will shift and sometimes the last legend item will disappear.

shrink pie chart

Steps to Reproduce (for bugs)

See this JSFiddle -> https://jsfiddle.net/kyLa8gr8/

Resize the output window to see the legend item issue.
Removing the padding options will resize the legend correctly.

Environment

  • Chart.js version: 2.5.0
  • Browser name and version: all browsers
@etimberg
Copy link
Member

etimberg commented Apr 5, 2017

Thanks for reporting this. Not sure where the issue might be, but I'm guessing it is inside the legend plugin

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

Successfully merging a pull request may close this issue.

3 participants