Jump to content
Changes to the Jaspersoft community edition download ×

Stacked bar chart: values missing


Recommended Posts

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

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