plot.setDataset(1, actualDataset);
XYLineAndShapeRenderer idealRenderer = new XYLineAndShapeRenderer(true, false);
idealRenderer.setDrawSeriesLineAsPath(true);
idealRenderer.setStroke(new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 10f, new float[]{10f, 10f}, 0f));
plot.setRenderer(plot.indexOf(idealDataset), idealRenderer);
XYLineAndShapeRenderer actualRenderer = new XYLineAndShapeRenderer(true, false);
actualRenderer.setDrawSeriesLineAsPath(true);
//idealRenderer.setStroke(new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 10f, new float[]{10f, 10f}, 0f));
plot.setRenderer(plot.indexOf(actualDataset), actualRenderer);