Chart inside of a list

Hi,

In main jasper report I have a list. Inside of a list I want to have one pie chart and one meter chart. I have problem with both.

 

Pie Chart

I passed to List a field of type net.sf.jasperreports.engine.data.JRBeanCollectionDataSource and set it in pie charts options (Use a JRDatasource expression -> $F{chartData}). The pie chart in generated report is empty.

I tried using same datasource for filling a list inside that first list (just to check if data is passed right), and that works.

 

Meter chart

In the list I passed field of Integer type that I want to show in meter chart. I don't understand what should I set for Dataset options for it to work. I tried with lot of options. I actually don't understand why would I even need a dataset if I'm showing only one number.

 

Thanks

 

ena_c's picture
2
Joined: Mar 9 2022 - 1:10am
Last seen: 1 year 2 months ago

0 Answers:

No answers yet
Feedback
randomness