madhus7 Posted October 27, 2007 Share Posted October 27, 2007 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 More sharing options...
bklawans Posted October 27, 2007 Share Posted October 27, 2007 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 More sharing options...
lucianc Posted October 29, 2007 Share Posted October 29, 2007 You can also use subdatasets for the two charts instead of subreports. You can see /demo/samples/charts/SubDatasetChartReport.jrxml for a sample. HTH,Lucian 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