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

Only can get the last row in my bar chart


Herman

Recommended Posts

Hi, everyone,

 

I have a bar chart need to display a set of datas from a database. I'm using the "select clause". unfortunatly i can only display the last row of data in the bar chart. however, those data can be displayed correctly in a normal band. anyone can advise me how to get around it?

 

Thanks heaps.

 

Herman

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I'm guessing you have the key expression in the barchart data set. If all the values have the same key each row will overwrite the previous one and only the last row will be plotted.

 

Take a good look at the sample bar chart in the demos that come with JasperReports for examples of what the various expressions should be.

 

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