yanivm Posted June 24, 2014 Share Posted June 24, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now