137138139140141142143144145146147
dataset = new XYDataset(); plot = new LinePlot(); break; case SCATTER_CHART: dataset = new XYDataset(); plot = new ScatterPlot(); break; default: throw new JRRuntimeException("Chart type not supported."); } }