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.HORIZONTAL_LITERAL);            newChart.setDimension(getDimensionFor(sDimension));        }        else        {            return newChart;        }        newChart.getTitle().getLabel().getCaption().setValue("Stock Chart Title");        ((Axis) newChart.getAxes().get(0)).setOrientation(Orientation.HORIZONTAL_LITERAL);        ((Axis) newChart.getAxes().get(0)).setType(AxisType.DATE_TIME_LITERAL);        ((Axis) newChart.getAxes().get(0)).setCategoryAxis(true);        ((Axis) newChart.getAxes().get(0)).getTitle().getCaption().setValue("Base Axis Title");        SeriesDefinition sdX = SeriesDefinitionImpl.create();        Series categorySeries = SeriesImpl.create();        sdX.getSeries().add(categorySeries);        ((Axis) newChart.getAxes().get(0)).getSeriesDefinitions().add(sdX);        ((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 valueSeries = StockSeriesImpl.create();        valueSeries.getLabel().setVisible(true);        sdY.getSeries().add(valueSeries);        ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().add(sdY);        newChart.setOrientation(Orientation.VERTICAL_LITERAL);        return newChart;    }