sdX.getSeriesPalette().update(0);
    public Chart getModel(String sSubType, Orientation orientation, String sDimension, Chart currentChart)    {        ChartWithoutAxes newChart = null;        if (currentChart != null)        {            newChart = (ChartWithoutAxes) getConvertedChart(currentChart, sSubType, sDimension);            if (newChart != null)            {                return newChart;            }        }        newChart = ChartWithoutAxesImpl.create();        newChart.setType(sType);        newChart.setSubType(sSubType);        newChart.setDimension(getDimensionFor(sDimension));        newChart.setUnits("Points"); //$NON-NLS-1$        if (newChart.getDimension().equals(ChartDimension.TWO_DIMENSIONAL_WITH_DEPTH_LITERAL))        {            newChart.setSeriesThickness(15);        }        newChart.getTitle().getLabel().getCaption().setValue(Messages.getString("PieChart.Txt.DefaultPieChartTitle")); //$NON-NLS-1$        SeriesDefinition sdX = SeriesDefinitionImpl.create();        Series categorySeries = SeriesImpl.create();        sdX.getSeries().add(categorySeries);        sdX.getQuery().setDefinition("Base Series"); //$NON-NLS-1$        SeriesDefinition sdY = SeriesDefinitionImpl.create();        sdY.getSeriesPalette().update(0);        Series valueSeries = PieSeriesImpl.create();        valueSeries.getLabel().setVisible(true);        valueSeries.setSeriesIdentifier("valueSeriesIdentifier"); //$NON-NLS-1$        ((PieSeries) valueSeries).getTitle().getCaption().setValue("valueSeries"); //$NON-NLS-1$        ((PieSeries) valueSeries).setStacked(false);        sdY.getSeries().add(valueSeries);        sdX.getSeriesDefinitions().add(sdY);        newChart.getSeriesDefinitions().add(sdX);        addSampleData(newChart);        return newChart;    }