XChart icon indicating copy to clipboard operation
XChart copied to clipboard

X axis label values overlap (bar chart - vertical columnss)

Open prakhar230792 opened this issue 7 years ago • 3 comments

When values in x axis labels for bar chart exceed the column bar width they overlap. Is there any way that x axis labels can rendered in multiple lines e.g. if label is a two letter word then it can be rendered in two lines.

I will need to render all x axis labels in my bar chart (using Category Chart). chart01

prakhar230792 avatar Dec 01 '17 13:12 prakhar230792

We would have to add code to do multiline tick labels like we have for the legend items.

timmolter avatar Dec 29 '19 09:12 timmolter

I was looking for the same, but found that I can use chart.getStyler().setXAxisLabelRotation(90) to rotate the labels.

scalavision avatar Apr 27 '20 18:04 scalavision

Yes, try chart.getStyler().setXAxisLabelRotation(45);

timmolter avatar May 03 '20 07:05 timmolter