squid icon indicating copy to clipboard operation
squid copied to clipboard

Categories text overlap on overflow

Open rovr opened this issue 9 years ago • 2 comments

Hi,

Thanks for the cool lib!

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

It results in text overlap on overflow: example

rovr avatar Feb 25 '16 15:02 rovr

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

claudiofullscreen avatar Feb 25 '16 15:02 claudiofullscreen

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.

rovr avatar Feb 25 '16 16:02 rovr