Project: Birt
Bug 109641 Stacked bar chart fails with missing data point
Reported: 2005-09-15 13:39:05 | Status: closed fixed

To reproduce, create a flat file .csv data source with the following data: Year, City, Population 1980, Chicago,2783726 1980, New York,7322564 1990, Los Angeles,4694820 1990, Chicago,3196016 1990, New York,8008278 2000, Los Angeles,6819951 2000, Chicago,2569121 2000, New York,8085742 This is the data used in the help example, except that the LA population for 1980 has been removed. Create a dataset and stacked or side-by-side bar chart using this dataset. The following error is generated: Error0 : Error.ExtendedItemRenderingError(1 time)detail: There are problems(s) rendering Chart extended item .$NO-RB$ Mismatch (3!=2) in dataset count found in stacked runtime seriesMismatch (3!=2) in dataset count found in stacked runtime series It is not uncommon to have one or more data points missing from a series - the chart should allow missing values.

Files changed in fix:
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withoutaxes/SeriesRenderingHints.java chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/AreaChart.java chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/BarChart.java chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/LineChart.java chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/MeterChart.java chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/PieChart.java chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/ScatterChart.java chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/StockChart.java chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskFormatChart.java chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectData.java chart/org.eclipse.birt.chart.ui/src/org/eclipse/birt/chart/ui/util/ChartUIUtil.java