views:

300

answers:

1

i am trying to change the series color for a chart which is called from a subreport in java with Jasper Report

JRChartPlot pl; JRFillObjectFactory fac; JRFillChartPlot plot = new JRFillChartPlot(pl, fac);

how to intanciate JRChartPLot to my JRFillChartPlot constructor, The previous code gives me null pointer exception

A: 

You need to use JRChartPlotFactoryclass and createObject method to instantiate JRChartPlot. May be, this source code might help to understand how to use.

hakan
Im new to jasper report, it will be nice if u can give some code as to how to use it