PeriodAnalysis2DPlotModel model = new PeriodAnalysis2DPlotModel(
analysisValues, domainType, rangeType, isLogarithmic);
// Create a line chart with legend, tool-tips, and URLs showing
// and add it to the panel.
PeriodAnalysis2DChartPane chartPanel = new PeriodAnalysis2DChartPane(
ChartFactory.createXYLineChart(title, model.getDomainType()
.getDescription(), model.getRangeType()
.getDescription(), model, PlotOrientation.VERTICAL,
true, true, true), model, permitLogarithmic);
chartPanel.getChart().addSubtitle(new TextTitle(subtitle));
return chartPanel;
}