Bug 150899 Cannot bind data values to chart series, which causes chart preview fail.
How to reproduce it? 1. Create a new chart, bind it with valid data set. 2. Assign the valid data values to category series and value series. Current result: 1. There is no chart live preview in chart builder. It still uses the default sample data. 2. Preview, dataset invalid exception is thrown out. Investigation: It is perhaps caused by ResultSetWrapper.java. There is no initializeMeta( ) in the Constructor.
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/internal/datafeed/ResultSetWrapper.java
iStartIndex = iEndIndex - groupChange;
			totalRowCount -= groupChange;
		}
	}
	private void groupTextually( List resultSet, int iSortColumnIndex,
			SortOption so, String[] saExpressionKeys, int[] iaBreaks,
			String ndeBaseReference, long iGroupingInterval,
			IAggregateFunction[] iafa ) throws ChartException
	{
		new GroupingSorter( ).sort( resultSet, iSortColumnIndex, so, iaBreaks );
		final int iOrthogonalSeriesCount = saExpressionKeys.length;
		final int[] iaColumnIndexes = new int[iOrthogonalSeriesCount];
		for ( int i = 0; i < iOrthogonalSeriesCount; i++ )
		{
			iaColumnIndexes[i] = ( (Integer) htLookup.get( saExpressionKeys[i] ) ).intValue( );
		}
		int iStartIndex = 0, iEndIndex;
		int totalGroupCount = iaBreaks == null ? 1 : ( iaBreaks.length + 1 );
		int totalRowCount = resultSet.size( );
		for ( int k = 0; k < totalGroupCount; k++ )
		{
			if ( k == totalGroupCount - 1 )
			{
				iEndIndex = totalRowCount;
			}
			else
			{
				iEndIndex = iaBreaks[k];
			}
			String baseReference = ndeBaseReference;