Jump to content
We've recently updated our Privacy Statement, available here ×

how to setup a piechart to use a report field of type java.util.collection


nava.krishnam

Recommended Posts

Hi,

 

I am having tough time figuring out how to configure piechart to use a list of objects as datasource. Could you please suggest the right approch to this problem?

My report needs to display two types of information. It needs to show a set of data values( let us call it frame 1) and a pie chart based on different set of data (let us call it frame 2).

My idea is to use JRBeanCollectionDataSource that contains two beans. One of the beans contains information needed for frame 1 and I am able to create fields for each of the bean properties in the report and display this data successfully.

The second bean contains a list of objects(with properties key, value and label) which I want to use to display the pie chart in frame 2. I have also created a field of type java.util.Collection for this list of objects in second bean.

 

Could you please suggest how this field can be configured to be consumed by pie chart?

 

Thank you,

Nava Krishna M

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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...