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

stack bar label being cut off #3435

Closed
sixinli opened this issue Jan 17, 2018 · 3 comments
Closed

stack bar label being cut off #3435

sixinli opened this issue Jan 17, 2018 · 3 comments

Comments

@sixinli
Copy link

sixinli commented Jan 17, 2018

Bug report

Live example URL:
http://jsfiddle.net/2bzs9eoq/

Expected behavior

label 23 to show up in full

Actual behavior

label `23 gets cut off

Possible Solution

Context

only happen when the chart is small - if change size to 600*400 this is fine

Environment

  • Plottable version:3.6.1
  • Browser name/version: chrome/63
  • OS name/version:mac/10.12.6
@themadcreator
Copy link
Contributor

In order to make room for the text above the label, you'll need to modify the y scale.

Try yscale.padProportion(0.2) which will add more padding above the stacked bars.
and try yscale.snappingDomainEnabled(false) which will prevent the domain from snapping to a "nice" value

@themadcreator
Copy link
Contributor

We're not going to install a fix for this other than manually setting these values

@themadcreator
Copy link
Contributor

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

No branches or pull requests

2 participants