Jump to content
Changes to the Jaspersoft community edition download ×

Pie chart with datasource collection would not diaply key expression label


yanivm

Recommended Posts

Hey,


i have created a JasperPring object with a JRDataSource which holds a collection of the following Object


public BeanWithList(String countries,  List<String> cities, List<Integer> population)


I wish to create on the "Detail band" a list of pieChart for each county , that would hold cities in that county and its population.


On IReport , Fields I created the following : countries , cities, population


I created a new dataset with the fileds city and population_per_city


and created a pie chart with a


key expression of   $F{city}


key expression of   $F{population_per_city}


now here is the problem , i can only set one datasource ,


I set new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{population})


but this only means that i can get information for the $F{population_per_city} variable , but the variable $F{city} is blank or equal to the population since they take the same value ...


how can i solve this ...


 


 


 


Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...