data.getData(1,1) instanceof DateData) ||
parameters.get("xDate") != null)
chart = ChartFactory.createTimeSeriesChart
(null, xLabel, yLabel, data.xyDataSource(), true, true, false);
else {
XYDataset src = data.xyDataSource();
chart = ChartFactory.createScatterPlot
(null, xLabel, yLabel, src, PlotOrientation.VERTICAL,
true, false, false);
String trendLine = getParameter("trend");