max101 - 2006-03-14


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.

// 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 ?