Hi
I am using this code to generate Line Chart. But boundries of graph overlapping labels of the upper line .
final CategoryDataset dataset1 = createDataset1();
final NumberAxis rangeAxis1 = new NumberAxis("Questions");
rangeAxis1.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
final LineAndShapeRenderer renderer1 = new LineAndShapeRenderer();
renderer1.setBaseToolTipGenerator(new StandardCategoryToolTipGenerator());
enderer1.setDrawShapes(true);
renderer1.setItemLabelsVisible(true);
renderer1.setLabelGenerator(new StandardCategoryLabelGenerator());
final CategoryAxis domainAxis = new CategoryAxis("Student Test - 1");
final CategoryPlot subplot1 = new CategoryPlot(dataset1, domainAxis, rangeAxis1, renderer1);
subplot1.setDomainGridlinesVisible(true);
JFreeChart chart = new JFreeChart("", JFreeChart.DEFAULT_TITLE_FONT, subplot1, true);
chart.setBackgroundPaint(java.awt.Color.white);
// Write the chart image to the temporary directory
ChartRenderingInfo info = new ChartRenderingInfo(new StandardEntityCollection());
filename = ServletUtilities.saveChartAsPNG(chart, 500, 300, info, session);
// Write the image map to the PrintWriter
ChartUtilities.writeImageMap(pw, filename, info);
pw.flush();
Thanks