lineseries.getDataDefinition().addAll(series.getDataDefinition());
lineseries.getDataDefinition().add(series.getDataDefinition().get(0));
    private Series getConvertedSeries(Series series)    {        // Do not convert base series        if (series.getClass().getName().equals("org.eclipse.birt.chart.model.component.impl.SeriesImpl"))        {            return series;        }        LineSeries lineseries = (LineSeries) LineSeriesImpl.create();        lineseries.getLineAttributes().setVisible(true);        lineseries.getLineAttributes().setColor(ColorDefinitionImpl.BLACK());        if (!(series instanceof ScatterSeries))        {            Marker marker = AttributeFactory.eINSTANCE.createMarker();            marker.setSize(5);            marker.setType(MarkerType.BOX_LITERAL);            marker.setVisible(true);            lineseries.setMarker(marker);        }        else        {            lineseries.setMarker(((ScatterSeries) series).getMarker());        }        // Copy generic series properties        lineseries.setLabel(series.getLabel());        if (series.getLabelPosition().equals(Position.INSIDE_LITERAL)            || series.getLabelPosition().equals(Position.OUTSIDE_LITERAL))        {            lineseries.setLabelPosition(Position.ABOVE_LITERAL);        }        else        {            lineseries.setLabelPosition(series.getLabelPosition());        }        lineseries.setVisible(series.isVisible());        if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_Triggers()))        {            lineseries.getTriggers().addAll(series.getTriggers());        }        if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_DataPoint()))        {            lineseries.setDataPoint(series.getDataPoint());        }        if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_DataDefinition()))        {            lineseries.getDataDefinition().addAll(series.getDataDefinition());        }        // Copy series specific properties        if (series instanceof StockSeries)        {            lineseries.getLineAttributes().setColor(((StockSeries) series).getLineAttributes().getColor());        }        return lineseries;    }