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

Grouping in Bar-Charts


Recommended Posts

By: Andreas - pfeutia

Grouping in Bar-Charts

2006-04-06 02:48

Hi all

 

I'm quite new to Jasperreports and are faced to the following problem.

 

How can I do groupings in a stacked-bar-chart?

 

I've done a pretty cross-tab. At the end of the report I would like to visualize the cross-tab in a stacked-bar-chart.

 

My data-strucutre is like this:

 

Month Segment

Jan A

Jan A

Jan A

Jan B

Jan C

Jan C

Jan B

Feb A

Feb C

Feb A

Feb B

Mrs A

Mrs A

...

 

Now, I would like to have a stacked-bar-chart that displays the count per Segment per Month.

The month is the category, the segment the serie and the value is the count per month and segment

 

|Segment A (3)| | Segment A (2)|

|-------------| |--------------|

|Segment B (2)| | Segment B (1)|

|-------------| |--------------|

|Segment C (2)| | Segment C (1)|

|-------------| |--------------|

 

Jan Feb

 

I don't think that I can work with groups, because i want only one graphic, do I?

 

Thanks for any hints

Andreas

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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