public static JFreeChart createChart(DefaultCategoryDataset linedataset) {
		JFreeChart chart = ChartFactory.createLineChart("SimResult-LineChart",
				"Cycles",
				"Sound Value",
				linedataset,
				PlotOrientation.VERTICAL,
				true,
				true,
				false
				);
		CategoryPlot plot = chart.getCategoryPlot();
		plot.setRangeGridlinesVisible(true);
		plot.setBackgroundAlpha(0.3f);
		NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
		rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
		rangeAxis.setAutoRangeIncludesZero(true);
		rangeAxis.setUpperMargin(0.20);
		//rangeAxis.setLabelAngle(Math.PI / 2.0);
		rangeAxis.setUpperBound(100.0D);
		rangeAxis.setLowerBound(0.0D);
		LineAndShapeRenderer renderer = (LineAndShapeRenderer)plot.getRenderer();
		
		for(int i=0;i<10;i++) {
			renderer.setSeriesStroke(i, new BasicStroke(1.5F));
			renderer.setSeriesPaint(i, i<5?Color.RED:Color.BLUE);
		}
		
		plot.setRenderer(renderer);
		
		return chart;
	}