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

Improve text fit in treemap trace #4469

Merged
merged 2 commits into from
Jan 7, 2020
Merged

Improve text fit in treemap trace #4469

merged 2 commits into from
Jan 7, 2020

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Jan 7, 2020

This PR:

  • improves text fit scale when adjusted to left or right (by removing extra pad)
  • keeps constant text anchor positions when unifromtext rescales the sizes
  • avoids hidden elements (namely when using maxdepth) to impact uniform text size

@plotly/plotly_js

@archmoj archmoj added bug something broken status: reviewable labels Jan 7, 2020
@archmoj archmoj added this to the v1.52.0 milestone Jan 7, 2020
src/traces/bar/plot.js Outdated Show resolved Hide resolved
@etpinard
Copy link
Contributor

etpinard commented Jan 7, 2020

Great work @archmoj The updated baselines look very nice! I made one comment.

@etpinard
Copy link
Contributor

etpinard commented Jan 7, 2020

💃 - thanks!

@etpinard etpinard closed this Jan 7, 2020
@etpinard etpinard reopened this Jan 7, 2020
@etpinard
Copy link
Contributor

etpinard commented Jan 7, 2020

(I didn't mean to close this PR, I clicked on the wrong button, sorry)

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

Successfully merging this pull request may close these issues.

2 participants