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

Categories text overlap on overflow #47

Open
rovr opened this issue Feb 25, 2016 · 2 comments
Open

Categories text overlap on overflow #47

rovr opened this issue Feb 25, 2016 · 2 comments

Comments

@rovr
Copy link

rovr commented Feb 25, 2016

Hi,

Thanks for the cool lib!

Is there a reason for 'leading: -3' option here?

It results in text overlap on overflow:
example

@claudiofullscreen
Copy link
Contributor

Hello and thanks for stopping by!

That was a personal decision: I wanted the labels to be closer to the horizontal axis.

I also experienced your issue, and for that reason I added the option every: 2 so not every bar gets a label.

Try playing around with the every parameter and see what it looks like.

If your labels overflow on a second row, you might have "too many" labels and the every option might improve the legibility of your graph.

screen shot 2016-02-25 at 7 41 25 am

@rovr
Copy link
Author

rovr commented Feb 25, 2016

Hi @claudiofullscreen

Thanks for a quick response! every works in this case, but I have some other graphs with user-supplied label texts of variable length, so I can't guarantee some of them won't overflow even if I space them out. Would be nice to have an option to change the leading attribute.

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

No branches or pull requests

2 participants