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

2 charts in one report from 2 db tables(ireport)


madhus7

Recommended Posts

hi, i have a requirement where i need to display 2 charts(pie and bar)in a single report side by side whose data come from different tables from the database.how can i do this using jasperreports and ireport.any help would be appreciated.....thanks in advance.
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

When you want a single report to show data from more than one query, you need to use a subreport. The easiest thing to do is to put each chart in its own subreport with its own query, and then place both subreports in the header or footer of a "master" report. If you want you can also add some data in the master report.

 

-Barry

Link to comment
Share on other sites

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