max101 - 2006-03-14

Hi,

In order to customize axisorientation and Labelfont, I wrote a postprocessor like this:

ChartPostProcessor axisCustomizer = new ChartPostProcessor(){
public void processChart(Object chart, Map params){
CategoryPlot plot =(CategoryPlot)((JFreeChart)chart).getPlot();
//diagonal axis-labels.
plot.getDomainAxis().setCategoryLabelPositions(plot.getDomainAxis().getCategoryLabelPositions().UP_45);

// exactly like in the JFreeChart Developer-Guide
CategoryItemRenderer renderer = plot.getRenderer();
renderer.setItemLabelFont(new Font("SansSerif",Font.BOLD,24));
}
};

The axisorientation works fine but the setItemLabelFont method has no effect.

Any ideas ?