Problem with stacked bars
Posted: Wed Apr 21, 2004 9:26 am
I have a problem with stacked bars and missing values.
My data is a set of tables resulting from a database query.
Each table has two columns (Week and Amount)
For each table I create a bar series with the MutliBar property set to Stacked, the table is the DataSource and DataMember for XValues and YValues are "Week" and "Amount" resp. BarWidthPercent is set to 100.
The problem is that not every table has rows for each week. The result is that the bar width is pretty variable. A bar for - let's say - week 12 in a series where all other weeks are missing extends horizontally until it hits another bar.
Does anyone have a solution other than creating a lot of null values manually?
Daniel
My data is a set of tables resulting from a database query.
Each table has two columns (Week and Amount)
For each table I create a bar series with the MutliBar property set to Stacked, the table is the DataSource and DataMember for XValues and YValues are "Week" and "Amount" resp. BarWidthPercent is set to 100.
The problem is that not every table has rows for each week. The result is that the bar width is pretty variable. A bar for - let's say - week 12 in a series where all other weeks are missing extends horizontally until it hits another bar.
Does anyone have a solution other than creating a lot of null values manually?
Daniel