Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Creating a Stacked Bar chart using a script
Creating a Stacked Bar chart using a script [message #1053495] Mon, 06 May 2013 09:35 Go to next message
Shlomi Lanton is currently offline Shlomi LantonFriend
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,

Re: Creating a Stacked Bar chart using a script [message #1057758 is a reply to message #1053495] Wed, 08 May 2013 15:24 Go to previous message
Kristopher Clark is currently offline Kristopher ClarkFriend
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 15:28]

Report message to a moderator

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

Current Time: Sat Jul 20 14:14:59 GMT 2024

Powered by FUDForum. Page generated in 0.02908 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top