jkoorts Posted September 27, 2006 Share Posted September 27, 2006 hi there, I run this query (simplified for this question) select month, count from pool From this query i get 12 records. one for each month.This displays fine in my barchart, but for some reason i get 12 charts for the same chart? I dont use the grouping cause i dont need it, as the query is already aggregated in a 'group by' clause. I just want to put the 12 records in 1 chart and thats the end of it. Attached is my jrxml file. thanks for any help [file name=VolumeReport.jrxml size=10653]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/VolumeReport.jrxml[/file] Link to comment Share on other sites More sharing options...
lucianc Posted September 27, 2006 Share Posted September 27, 2006 You've placed the chart on the detail band. Since your query returns 12 rows, the report will contain 12 detail bands. Hence, you'll get 12 charts. Everything works as expected. If you want only want chart, you should place the chart on the summary band. HTH,Lucian Link to comment Share on other sites More sharing options...
jkoorts Posted September 28, 2006 Author Share Posted September 28, 2006 Thanks mate! I checked the jasper report book again, and yes they did use the summary tag in their example, but no where does it say that you need to put charts in summary. thanks a lot again. jacques 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