protected JFreeChart createXyLineChart() throws JRException
{
JFreeChart jfreeChart = super.createXyLineChart();
XYPlot xyPlot = (XYPlot) jfreeChart.getPlot();
XYLineAndShapeRenderer lineRenderer = (XYLineAndShapeRenderer) jfreeChart.getXYPlot().getRenderer();
XYLine3DRenderer line3DRenderer = new XYLine3DRenderer();
line3DRenderer.setBaseToolTipGenerator(lineRenderer.getBaseToolTipGenerator());
line3DRenderer.setURLGenerator(lineRenderer.getURLGenerator());
line3DRenderer.setBaseStroke(new BasicStroke(2, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
line3DRenderer.setBaseLinesVisible(lineRenderer.getBaseLinesVisible());
line3DRenderer.setBaseShapesVisible(lineRenderer.getBaseShapesVisible());
Stroke stroke = new BasicStroke(2f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND);
XYDataset xyDataset = xyPlot.getDataset();
if(xyDataset != null)
{
for(int i = 0; i < xyDataset.getSeriesCount(); i++)
{
line3DRenderer.setSeriesStroke(i, stroke);
line3DRenderer.setSeriesLinesVisible(i, lineRenderer.getBaseLinesVisible());
line3DRenderer.setSeriesShapesVisible(i, lineRenderer.getBaseShapesVisible());
}
}
line3DRenderer.setXOffset(2);
line3DRenderer.setYOffset(2);
line3DRenderer.setWallPaint(ChartThemesConstants.GRAY_PAINT_134);