if ( newChart.getDimension( ) == ChartDimension.THREE_DIMENSIONAL_LITERAL ) { BaseSampleData sdAncillary = DataFactory.eINSTANCE.createBaseSampleData( ); sdAncillary.setDataSetRepresentation( "Series 1" ); sd.getAncillarySampleData( ).add( sdAncillary ); }
	private void addSampleData( Chart newChart )	{		SampleData sd = DataFactory.eINSTANCE.createSampleData( );		sd.getBaseSampleData( ).clear( );		sd.getOrthogonalSampleData( ).clear( );		// Create Base Sample Data		BaseSampleData sdBase = DataFactory.eINSTANCE.createBaseSampleData( );		sdBase.setDataSetRepresentation( "A, B, C" ); //$NON-NLS-1$		sd.getBaseSampleData( ).add( sdBase );		// Create Orthogonal Sample Data (with simulation count of 2)		OrthogonalSampleData oSample = DataFactory.eINSTANCE.createOrthogonalSampleData( );		oSample.setDataSetRepresentation( "5,14,10" ); //$NON-NLS-1$		oSample.setSeriesDefinitionIndex( 0 );		sd.getOrthogonalSampleData( ).add( oSample );		if ( newChart.getDimension( ) == ChartDimension.THREE_DIMENSIONAL_LITERAL )		{			BaseSampleData sdAncillary = DataFactory.eINSTANCE.createBaseSampleData( );			sdAncillary.setDataSetRepresentation( "Series 1" ); //$NON-NLS-1$			sd.getAncillarySampleData( ).add( sdAncillary );		}		newChart.setSampleData( sd );	}