How to wrap category labels in JfreeChart
Posted
by SKR
on Stack Overflow
See other posts from Stack Overflow
or by SKR
Published on 2010-05-06T10:56:18Z
Indexed on
2010/05/06
10:58 UTC
Read the original article
Hit count: 341
I have Stacked Bar Chart created using JFreeChart. The labels of the category are quite big and they overlap with the label of the next Bar. I would like to wrap it to the next line. I did some searching and found that i have to use the below code. setMaximumCategoryLabelLines(2) in the CategoryAxis and still it doesn't wrap to the next line.
Please suggest solutions.
© Stack Overflow or respective owner