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.