The combined plot I create dislays the values on the Y-Axis as 0.0.5,1..etc.
How can I modify it so that I would see 0,1,2..etc
The code I have for creating the combined chart is as follows:
XYDataset respData1 = createResponseDataset3();
XYDataset respData2 = createResponseDataset4();
// create a combined dataset...
data = new CombinedDataset();
data.add(respData1);
data.add(respData2);
//
ValueAxis numberAxis1 = new HorizontalNumberAxis("Time Of Day");
numberAxis1.setCrosshairVisible(false);
//numberAxis.setVerticalTickLabels(true);
//timeAxis.setGridLinesVisible(false);
// create a shared value axis...
ValueAxis value1Axis1 = new VerticalNumberAxis("Responses");
value1Axis1.setCrosshairVisible(false);
//valueAxis.setGridLinesVisible(false);
// make an overlaid plot...
overlaidPlot = new CombinedPlot(numberAxis1, value1Axis1);
// add the combinable charts to it...
plot0 = new XYPlot(numberAxis1, value1Axis1, new StandardXYItemRenderer(StandardXYItemRenderer.LINES));
s0 = new SubSeriesDataset(data, 0);
c0 = ChartFactory.createCombinableChart(s0, plot0);
overlaidPlot.add(c0);
s1 = new SubSeriesDataset(data, 1);
c1 = ChartFactory.createCombinableXYChart(numberAxis1, value1Axis1,data);
overlaidPlot.add(c1);
// perform final adjustments...
overlaidPlot.adjustPlots();
// return a new chart containing the overlaid plot...
return new JFreeChart(data, overlaidPlot,
"Responses", JFreeChart.DEFAULT_TITLE_FONT, true);