Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Creating a Stacked Bar chart using a script
Creating a Stacked Bar chart using a script [message #1053495] Mon, 06 May 2013 05:35 Go to next message
Shlomi Lanton is currently offline Shlomi Lanton
Messages: 7
Registered: May 2013
Junior Member
Hi all,

I'm trying to create a dynamic Stacked Bar chart.
I have found an example that shows how to create a simple bar chart using a script in the "beforeFactory",
but I can't figure out how make it display as a stacked bar.
meaning which part of the Birt API is controlling that "Optional Y Series Grouping" setting.

I have attached a sample report.
When you view it in HTML you see 3 parts:
1. a table that displays all the data that I got in the dataset
2. a Stacked bar chart that I created using Birt eclipse and the dataset from item 1 (hard coded), this chart is using the "PRODUCTCODE" column as the "Optional Y Series Grouping" to group the data.
3. a bar chart that I create dynamically using the dataset from item 1.

comment: This is not a real-life example just a sample report that I created as a test.

What I'm trying to do, is to create exactly the same chart as in item 2 but dynamically. The problem is that I cannot find neither an example nor the API calls to set the "Optional Y Series Grouping" of that chart.

Your help will be greatly appreciated,

Shlomi
Re: Creating a Stacked Bar chart using a script [message #1057758 is a reply to message #1053495] Wed, 08 May 2013 11:24 Go to previous message
Kristopher Clark is currently offline Kristopher Clark
Messages: 130
Registered: January 2013
Senior Member
It looks like from your post on birt-exchange you got this working from this thread I thought I'd post the link here in case someone else was looking for the solution Smile

[Updated on: Wed, 08 May 2013 11:28]

Report message to a moderator

Previous Topic:Table rows height problem
Next Topic:Spanning Columns Across Pages
Goto Forum:
  


Current Time: Sat Aug 23 15:35:13 EDT 2014

Powered by FUDForum. Page generated in 0.04443 seconds