Project: Birt
Bug 280030 The default datetime format is not correct after grouping is set.
Reported: 2009-06-11 23:13:18 | Status: verified fixed

Use attached report. Edit the first chart and open the grouping dialog in select data page. Now the chart is grouped by Year unit. There are two issues. 1. The default format in Legend is wrong. In color by category case, it should be the same with categories, i.e. Legend entry should display 2003, 2004. 2. If change to Month unit. The categories should display like Janu 2003, which depends on current locale. But now it displays the raw format.

Files changed in fix:
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/LegendBuilder.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/AutoScale.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/PlotWith2DAxes.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/PlotWith3DAxes.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/PlotWithAxes.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/internal/datafeed/GroupingUtil.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/internal/factory/DateFormatWrapperFactory.java chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/util/ChartUtil.java