Here's the chart:

Here's the snippet of code where I manipulate my category axis:
Code: Select all
CategoryAxis categoryAxis = new CategoryAxis( y1Label );
categoryAxis.setMaximumCategoryLabelLines( 1 );
CategoryLabelPositions positions = new CategoryLabelPositions( new CategoryLabelPosition(
RectangleAnchor.BOTTOM, TextBlockAnchor.BOTTOM_CENTER ), // TOP
new CategoryLabelPosition( RectangleAnchor.TOP, TextBlockAnchor.TOP_CENTER ), // BOTTOM
new CategoryLabelPosition( RectangleAnchor.LEFT, TextBlockAnchor.CENTER_LEFT,
CategoryLabelWidthType.RANGE, 0.4f ), // LEFT
new CategoryLabelPosition( RectangleAnchor.LEFT, TextBlockAnchor.CENTER_LEFT ) // RIGHT
);
categoryAxis.setCategoryLabelPositions( positions );
categoryAxis.setLabelInsets( new RectangleInsets( 3, 3, 3, 3 ) );
The behavior I think I see is that the area reserved for axis labels is not what is actually used by the Text Blocks when writing out the labels. Most of the labels are getting cut off prematurely and could display much more (even considering the type of BreakIterator used) if the full space was utilized.
I've tried many different ways of generating the plot (not using the CategoryLabelPositions, changing the insets, etc.), but have had no success.
So... am I just missing something in my configuration of the CategoryAxis that is preventing me from getting the axis labels to display the way I want?
I appreciate any help and tips -- this has been a problem vexing me for some time.
Regards,
David