Bug 202885 Sample Data issue of Scatter/Area chart [13]
Description: Sample Data issue. Build number: 2.2.0.v20070911-0630 Steps to reproduce: 1. Drag a chart from Palette to Layout, first setlect type as Gantt, then change to Area/Scatter,check the "Chart Preview" pane. Expected result: Y Axis is still of linear type. Actual result: Y Axis is of Date/Time type. Error log: N/A
chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/ScatterChart.java
return newChart;
	}
	private void addSampleData( Chart newChart )
	{
		SampleData sd = DataFactory.eINSTANCE.createSampleData( );
		sd.getBaseSampleData( ).clear( );
		sd.getOrthogonalSampleData( ).clear( );
		
		BaseSampleData sdBase = DataFactory.eINSTANCE.createBaseSampleData( );
		sdBase.setDataSetRepresentation( "3,9,-2" ); 
		sd.getBaseSampleData( ).add( sdBase );
		
		OrthogonalSampleData oSample = DataFactory.eINSTANCE.createOrthogonalSampleData( );
		oSample.setDataSetRepresentation( "15,-4,12" ); 
		oSample.setSeriesDefinitionIndex( 0 );
		sd.getOrthogonalSampleData( ).add( oSample );
		/*
		 * OrthogonalSampleData oSample2 =
		 * DataFactory.eINSTANCE.createOrthogonalSampleData();
		 * oSample2.setDataSetRepresentation("2,27,35");
		 * oSample2.setSeriesDefinitionIndex(0);
		 * sd.getOrthogonalSampleData().add(oSample2);
		 */
		newChart.setSampleData( sd );
	}
	private Chart getConvertedChart( Chart currentChart, String sNewSubType,
			Orientation newOrientation, String sNewDimension )
	{
		Chart helperModel = (Chart) EcoreUtil.copy( currentChart );