case CHART_TYPE_PIE3D:
dataset = new JRDesignPieDataset(dataset);
plot = new JRDesignPie3DPlot(plot, this);
break;
case CHART_TYPE_SCATTER:
dataset = new JRDesignXyDataset(dataset);
plot = new JRDesignScatterPlot(plot, this);
break;
case CHART_TYPE_STACKEDBAR:
dataset = new JRDesignCategoryDataset(dataset);
plot = new JRDesignBarPlot(plot, this);
break;
case CHART_TYPE_STACKEDBAR3D:
dataset = new JRDesignCategoryDataset(dataset);
plot = new JRDesignBar3DPlot(plot, this);
break;
case CHART_TYPE_THERMOMETER:
dataset = new JRDesignValueDataset(dataset);
plot = new JRDesignThermometerPlot(plot, this);
break;
case CHART_TYPE_TIMESERIES:
dataset = new JRDesignTimeSeriesDataset(dataset);//other datasets could be supported
plot = new JRDesignTimeSeriesPlot(plot, this);
break;
case CHART_TYPE_XYAREA:
dataset = new JRDesignXyDataset(dataset);
plot = new JRDesignAreaPlot(plot, this);
break;
case CHART_TYPE_XYBAR:
plot = new JRDesignBarPlot(plot, this);
break;
case CHART_TYPE_XYLINE:
dataset = new JRDesignXyDataset(dataset);
plot = new JRDesignLinePlot(plot, this);
break;
case CHART_TYPE_STACKEDAREA:
dataset = new JRDesignCategoryDataset(dataset);
plot = new JRDesignAreaPlot(plot, this);