
Please help.
Thanks,
Ken
Code Segment:
______________________________
JFreeChart jfChart = ChartFactory.createLineChart(
null,
null,
null,
jfDataSet,
PlotOrientation.VERTICAL,
false,
false,
false
);
// Customize the chart
jfChart.setBackgroundPaint(Color.WHITE);
jfChart.setAntiAlias(true);
jfChart.setBorderPaint(Color.WHITE);
jfChart.setBorderVisible(false);
// Customize the plot
CategoryPlot plot = jfChart.getCategoryPlot();
plot.setAxisOffset(new Spacer(Spacer.ABSOLUTE, 0, 0, 0, 0));
plot.setDataAreaRatio(1.0);
// Had to set the paint to white to get rid of this line.
plot.setOutlinePaint(Color.WHITE);
// customize the domain axis...
CategoryAxis domainAxis = plot.getDomainAxis();
domainAxis.setVisible(false);
domainAxis.setUpperMargin(0);
domainAxis.setLowerMargin(0);
// customize the range axis
NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
rangeAxis.setVisible(false);
rangeAxis.setAutoRange(true);
rangeAxis.setAutoRangeIncludesZero(false);
rangeAxis.setUpperMargin(0);
rangeAxis.setLowerMargin(0);