return new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT, plot, legend);
}
protected JFreeChart computeXYChart(final XYDataset xyDataset)
{
final JFreeChart chart;
if (xyDataset instanceof TimeSeriesCollection)
{
if (isStacked())
{
final ExtTimeTableXYDataset tableXYDataset = convertToTable(xyDataset);
chart = createTimeSeriesChart(computeTitle(), getDomainTitle(), getRangeTitle(), tableXYDataset,
isShowLegend(), false, false, isStacked());
}
else
{
chart = createTimeSeriesChart(computeTitle(), getDomainTitle(), getRangeTitle(), xyDataset,
isShowLegend(), false, false, isStacked());
}
}
else
{
final PlotOrientation orientation = computePlotOrientation();
if (isStacked())
{
chart = createStackedXYAreaChart(computeTitle(), getDomainTitle(), getRangeTitle(),
xyDataset, orientation, isShowLegend(), false, false);
}
else
{
chart = ChartFactory.createXYAreaChart(computeTitle(), getDomainTitle(), getRangeTitle(),
xyDataset, orientation, isShowLegend(), false, false);
}
}
configureLogarithmicAxis(chart.getXYPlot());
return chart;
}