I have a report that contains a pie chart within it. I would want the chart to be shown no matter if the query returns results or nothing at all. typically you just need to do the plot.setNoDataMessage() function, however since this is not exposed within iReport, i did it within the Customizer class just as the following:
CategoryPlot plot = (CategoryPlot)chart.getPlot();
plot.setNoDataMessage("No data available so we go into this really "
+ "long spiel about what that means and it runs off the end of the "
+ "line but what can you do about that!");
however when i run it with no data returning, it is giving me a blank page and iReport pops up with "the document has no pages"
Please advise.