private JFreeChart createChart(XYDataset dataset, String title, String yAxisLabel, double minY, double maxY, boolean showLegend) {

		JFreeChart chart = ChartFactory.createXYLineChart(
				title,  // title
				"Elapsed time(s)",             // x-axis label
				yAxisLabel,   // y-axis label
				dataset,
				PlotOrientation.VERTICAL,
				showLegend,
				false,
				false
				);

		chart.setBackgroundPaint(Color.white);

		plot = (XYPlot) chart.getPlot();
		plot.setBackgroundPaint(Color.lightGray);
		plot.setDomainGridlinePaint(Color.white);
		plot.setRangeGridlinePaint(Color.white);
		plot.setAxisOffset(new RectangleInsets(5.0, 5.0, 5.0, 5.0));
		plot.setDomainCrosshairVisible(true);
		plot.setRangeCrosshairVisible(true);

		ValueAxis yAxis = plot.getRangeAxis();
		yAxis.setRange(new Range(minY, maxY));
		return chart;

	}