I'm trying to change the render type of a Chart within JasperReports. I've got the Chart Customizer property set correctly, the class can be found [and hit when debugging] However the changes requested aren't made when the report is rendered.
The JRChartCustomizer class is:
public class PriceGraph implements JRChartCustomizer {
public void customize(JFreeChart chart, JRChart jasperChart) {
XYPlot plot = (XYPlot) chart.getPlot();
XYItemRenderer renderer = plot.getRenderer();
Shape shp = new Rectangle2D.Double(-0.5, -0.5, 1.0, 1.0);
renderer.setBaseShape(shp);
renderer.setSeriesPaint(0, Color.yellow);
renderer.setBasePaint(Color.green);
}
}
Has anyone hit this issue before?