this.chartType = chartType;
switch(chartType) {
case AREA_CHART:
case STACKEDAREA_CHART:
dataset = new CategoryDataset();
plot = new AreaPlot();
break;
case BAR_CHART:
case STACKEDBAR_CHART:
dataset = new CategoryDataset();
plot = new BarPlot();
break;
case BAR3D_CHART:
case STACKEDBAR3D_CHART:
dataset = new CategoryDataset();
plot = new Bar3DPlot();
break;
case LINE_CHART:
dataset = new CategoryDataset();
plot = new LinePlot();
break;
case PIE_CHART:
dataset = new PieDataset();
plot = new PiePlot();