I've set the following values in my bar chart so the y axis label values will have two lines
Now the problem I have is the default behavior when you do this is for the two values to be centered. I would like the two values to be left justified.
How would I go about doing this? I tried creating a CategoryLabelPosition object and setting setCategoryLabelPositions but I could not get it to work. I expect I’m not setting the correct values for my CategoryLabelPosition object but I cannot figure out what I should be setting it too.
I tried this for example
CategoryLabelPosition leftPositionSpec = new CategoryLabelPosition(
new CategoryLabelPosition(), new CategoryLabelPosition(),
leftPositionSpec, new CategoryLabelPosition()))
A discussion forum for JFreeChart (a 2D chart library for the Java platform).
1 post • Page 1 of 1