addSampleData();
    public Chart getModel(String sSubType, Orientation orientation, String sDimension)    {        if (newChart == null)        {            newChart = ChartWithAxesImpl.create();            newChart.setType(sType);            newChart.setSubType(sSubType);            newChart.setOrientation(orientation);            newChart.setDimension(getDimensionFor(sDimension));        }        else        {            return newChart;        }        ((Axis) newChart.getAxes().get(0)).setOrientation(Orientation.HORIZONTAL_LITERAL);        ((Axis) newChart.getAxes().get(0)).setType(AxisType.LINEAR_LITERAL);        ((Axis) newChart.getAxes().get(0)).getTitle().getCaption().setValue("Base Axis Title");        SeriesDefinition sdX = SeriesDefinitionImpl.create();        Series baseSeries = SeriesImpl.create();        sdX.getSeries().add(baseSeries);        ((Axis) newChart.getAxes().get(0)).getSeriesDefinitions().add(sdX);        newChart.getTitle().getLabel().getCaption().setValue("Scatter Chart Title");        ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0))            .setOrientation(Orientation.VERTICAL_LITERAL);        ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL);        ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getTitle().getCaption().setValue(            "Orthogonal Axis Title");        SeriesDefinition sdY = SeriesDefinitionImpl.create();        sdY.getQuery().setDefinition("MyExpression(Table.Column)");        sdY.getSeriesPalette().update(0);        Series orthogonalSeries = ScatterSeriesImpl.create();        orthogonalSeries.getLabel().setVisible(true);        ((ScatterSeries) orthogonalSeries).setStacked(true);        sdY.getSeries().add(orthogonalSeries);        ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().add(sdY);        if (sSubType.equalsIgnoreCase("Standard Scatter Chart"))        {            newChart.setDimension(ChartDimension.TWO_DIMENSIONAL_LITERAL);        }        return newChart;    }