dotWidth = 5;
}
protected JFreeChart computeXYChart(final XYDataset xyDataset)
{
final JFreeChart chart;
if (xyDataset instanceof TimeSeriesCollection)
{
chart =
ChartFactory.createTimeSeriesChart(computeTitle(), getDomainTitle(), getRangeTitle(), xyDataset,
isShowLegend(), false, false);
final XYPlot xyPlot = chart.getXYPlot();
final XYLineAndShapeRenderer itemRenderer = (XYLineAndShapeRenderer) xyPlot.getRenderer();
final XYLineAndShapeRenderer renderer = new XYLineAndShapeRenderer(false, true);
renderer.setBaseToolTipGenerator(itemRenderer.getBaseToolTipGenerator());
renderer.setURLGenerator(itemRenderer.getURLGenerator());
xyPlot.setRenderer(renderer);
}
else
{
final PlotOrientation orientation = computePlotOrientation();
chart = ChartFactory.createScatterPlot(computeTitle(), getDomainTitle(), getRangeTitle(),
xyDataset, orientation, isShowLegend(), false, false);
}
chart.getXYPlot().setRenderer(new XYDotRenderer());
configureLogarithmicAxis(chart.getXYPlot());
return chart;
}