areaseries.setLabel( series.getLabel( ) ); if ( series.getLabelPosition( ).equals( Position.INSIDE_LITERAL ) || series.getLabelPosition( ).equals( Position.OUTSIDE_LITERAL ) ) { areaseries.setLabelPosition( Position.ABOVE_LITERAL ); } else { areaseries.setLabelPosition( series.getLabelPosition( ) ); }  areaseries.setVisible( series.isVisible( ) ); if ( series.eIsSet( ComponentPackage.eINSTANCE.getSeries_Triggers( ) ) ) { areaseries.getTriggers( ).addAll( series.getTriggers( ) ); } if ( series.eIsSet( ComponentPackage.eINSTANCE.getSeries_DataPoint( ) ) ) { areaseries.setDataPoint( series.getDataPoint( ) ); } if ( series.eIsSet( ComponentPackage.eINSTANCE.getSeries_DataDefinition( ) ) ) { areaseries.getDataDefinition( ).add( series.getDataDefinition( ) .get( 0 ) ); }
ChartUIUtil.copyGeneralSeriesAttributes( series, areaseries );
	private Series getConvertedSeries( Series series )	{		// Do not convert base series		if ( series.getClass( )				.getName( )				.equals( "org.eclipse.birt.chart.model.component.impl.SeriesImpl" ) ) //$NON-NLS-1$		{			return series;		}		AreaSeries areaseries = (AreaSeries) AreaSeriesImpl.create( );		areaseries.getLineAttributes( ).setVisible( true );		areaseries.getLineAttributes( ).setColor( ColorDefinitionImpl.BLACK( ) );		if ( !( series instanceof ScatterSeries ) )		{			areaseries.getMarkers( ).clear( );			Marker marker = AttributeFactory.eINSTANCE.createMarker( );			marker.setSize( 5 );			marker.setType( MarkerType.BOX_LITERAL );			marker.setVisible( false );			areaseries.getMarkers( ).add( marker );		}		else		{			areaseries.getMarkers( ).clear( );			areaseries.getMarkers( )					.addAll( ( (ScatterSeries) series ).getMarkers( ) );			for ( Iterator itr = areaseries.getMarkers( ).iterator( ); itr.hasNext( ); )			{				Marker mk = (Marker) itr.next( );				mk.setVisible( false );			}		}		// Copy generic series properties		areaseries.setLabel( series.getLabel( ) );		if ( series.getLabelPosition( ).equals( Position.INSIDE_LITERAL )				|| series.getLabelPosition( ).equals( Position.OUTSIDE_LITERAL ) )		{			areaseries.setLabelPosition( Position.ABOVE_LITERAL );		}		else		{			areaseries.setLabelPosition( series.getLabelPosition( ) );		}		areaseries.setVisible( series.isVisible( ) );		if ( series.eIsSet( ComponentPackage.eINSTANCE.getSeries_Triggers( ) ) )		{			areaseries.getTriggers( ).addAll( series.getTriggers( ) );		}		if ( series.eIsSet( ComponentPackage.eINSTANCE.getSeries_DataPoint( ) ) )		{			areaseries.setDataPoint( series.getDataPoint( ) );		}		if ( series.eIsSet( ComponentPackage.eINSTANCE.getSeries_DataDefinition( ) ) )		{			areaseries.getDataDefinition( ).add( series.getDataDefinition( )					.get( 0 ) );		}		// Copy series specific properties		if ( series instanceof StockSeries )		{			areaseries.getLineAttributes( )					.setColor( ( (StockSeries) series ).getLineAttributes( )							.getColor( ) );		}		return areaseries;	}