Stacked bar chart: values missing

0
By: Bruno - bruno1111
Stacked bar chart: values missing
2006-03-26 23:41
Hi,

I need to display the following categories by a stacked bar chart:

project incomplete ready reviewed
------- ---------- ----- --------
Proj-1 30 100 70
Proj-2 50 50 50


In the stacked bar "ncomplete", "ready" and "reviewed" are stacked on each other. Project is the category.

The display of Proj-1 is Ok. But in Proj-2 "incomplete" and "ready" is skipped only "reviewed" is displayed. That's because all three values have the same figure. But I need all three values displayed.

I used iReport to create the report. In the details tab of the chart data properties I have setup the following three series:
1. Category series [$F{incomplete}]
Series expression: $F{incomplete}
Category expression: $F{project}
Value expression: $F{incomplete}
Label expression: "incomplete"

2. Category series [$F{ready}]
Series expression: $F{ready}
Category expression: $F{project}
Value expression: $F{ready}
Label expression: "ready"

3. Category series [$F{reviewed}]
Series expression: $F{reviewed}
Category expression: $F{project}
Value expression: $F{reviewed}
Label expression: "reviewed"

I feed the data with an array of java beans.
Print repeated values is set to true in the common report options.


Is something wrong with my chart definition or is it a bug in jasperreports or iReport? It seems not to be a problem with JFreeChart as there is a sample with repeating values in a stacked bar that runs ok.

Many thanks for your help in advance

Regards,
Bruno
2006 IR Open Dicussion's picture
Joined: Aug 10 2006 - 3:24am
Last seen: 7 years 11 months ago

Answers:

No answers yet
Feedback
randomness