I have to make a report that has two pie charts, what happens is that my first chart appears with no problems, the second does not, and I have already checked if the lists, which are sent via parameter, and are populated.
parametros.put("LIST_GRAFICO_RECEITAS", listaGraficoReceitas);
parametros.put("LIST_GRAFICO_DESPESAS", listaGraficoDespesas);
But only one of the charts is displayed. Has anyone gone through this?
This is my chart connection (this refers to the recipe chart) with the report:
new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{LIST_GRAFICO_RECEITAS})
The same for the other chart (expense chart):
new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{LIST_GRAFICO_DESPESAS})