XChart
XChart copied to clipboard
X axis label values overlap (bar chart - vertical columnss)
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).
We would have to add code to do multiline tick labels like we have for the legend items.
I was looking for the same, but found that I can use chart.getStyler().setXAxisLabelRotation(90)
to rotate the labels.
Yes, try chart.getStyler().setXAxisLabelRotation(45);