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

When the label size is too short, the constant for calculating #1120

Merged
merged 1 commit into from
Sep 15, 2016

Conversation

vera-liu
Copy link
Contributor

@vera-liu vera-liu commented Sep 15, 2016

  • issue: https://github.com/airbnb/caravel/issues/1112
  • margin_size does not apply. Also nvd3 auto adjusts font-size of axis
    labels.
  • Temporary solution here: Setting a fixed font-size on nvd3 axis labels
    and a minimum threshold for label size.

screen shot 2016-09-15 at 12 00 45 pm
screen shot 2016-09-15 at 12 08 45 pm

needs-review @ascott @mistercrunch @bkyryliuk

@ascott
Copy link
Contributor

ascott commented Sep 15, 2016

will these changes affect line charts as well? afaik nvd3_vis.js/css are used for line, bar, pie, and others. check out the case statements here: https://github.com/ascott/caravel/blob/master/caravel/assets/visualizations/nvd3_vis.js#L106-L107

@vera-liu
Copy link
Contributor Author

vera-liu commented Sep 15, 2016

Tested this on several line chart, the font-size looks good, since we don't rotate the labels in line charts, this should be fine
screen shot 2016-09-15 at 2 39 48 pm

@ascott
Copy link
Contributor

ascott commented Sep 15, 2016

LGTM! 🚢

margin_size does not apply. Also nvd3 auto-adjust font-size of axis
labels.
Temporary solution here: Setting a fixed font-size on nvd3 axis labels
and a minimum threshold for label size.
@vera-liu vera-liu merged commit 2132f67 into apache:master Sep 15, 2016
dennisobrien pushed a commit to dennisobrien/caravel that referenced this pull request Sep 19, 2016
…e#1120)

margin_size does not apply. Also nvd3 auto-adjust font-size of axis
labels.
Temporary solution here: Setting a fixed font-size on nvd3 axis labels
and a minimum threshold for label size.
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.11.0 labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants