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 automargin to pie traces with outside text labels #4278

Merged
merged 3 commits into from
Oct 23, 2019
Merged

Conversation

etpinard
Copy link
Contributor

resolves #4223

This PR adds an automargin attribute (which defaults to false) to pie traces.

example 1: https://codepen.io/etpinard/pen/ZEEOjxB?editors=1010

example 2 (with margin 0): https://codepen.io/etpinard/pen/dyyXjmK?editors=1010

cc @plotly/plotly_js

.. with a couple jasmine tests
- one with default margins
- one with margin:0
@etpinard etpinard added this to the v1.51.0 milestone Oct 16, 2019
@archmoj
Copy link
Contributor

archmoj commented Oct 22, 2019

Fantastic PR!
💃

@etpinard
Copy link
Contributor Author

Merging!

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

Successfully merging this pull request may close these issues.

Pie label clipping on tight margins
2 participants