XYItemRenderer rend = (XYItemRenderer) PlotTypes.getRenderer(rendererIndex);
plot.setRenderer(plotidx, rend);
}
return new JFreeChart(title, new Font("SansSerif", Font.BOLD, 18), plot, showLegend);
case OVERLAY_CATEGORY ://added by lrh 2005-07-11
CategoryAxis domainAxis2 = (CategoryAxis)axisFactory.createAxis(ORIENTATION_HORIZONTAL, xAxisType, xAxisLabel);
// get main plot
mainPlotDef = (PlotDefinition) plotDefinitions.get(0);
check(mainPlotDef.getDataset(), CategoryDataset.class, chartType);
CategoryPlot plot2 = (CategoryPlot) mainPlotDef.getPlot(chartTypeConst);
plot2.setDomainAxis(domainAxis2);