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

Make margin width based on container width instead of slice width #4487

Merged
merged 3 commits into from
Feb 28, 2018

Conversation

jeffreythewang
Copy link
Contributor

@jeffreythewang jeffreythewang commented Feb 26, 2018

This issue is most noticeable when the chart width overflows beyond the chart container's width, most notably in bar charts. This happens because the margin padding is based on the width of the slice itself, rather than of the container that wraps it.

Fixes #4369 (more information in the issue)

I also included a limit on how wide the margin can grow to, in cases where users expand a chart onto very wide displays.

@hughhhh
Copy link
Member

hughhhh commented Feb 27, 2018

🚢

Copy link

@graceguo-supercat graceguo-supercat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@graceguo-supercat graceguo-supercat merged commit 3a58dc7 into apache:master Feb 28, 2018
@jeffreythewang jeffreythewang deleted the jeffreyw/fix-bar-width branch March 1, 2018 00:01
michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
…ache#4487)

* Make width based on container width instead of slice width

* fix const var name and add comment

* Actually 30 looks good too
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
…ache#4487)

* Make width based on container width instead of slice width

* fix const var name and add comment

* Actually 30 looks good too
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.24.0 labels Feb 27, 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.24.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Big blank margin for dist_bar viz
4 participants