Basic Column Chart - CanvasJS JavaScript Charts

Basic Column Chart - CanvasJS JavaScript Charts

HTML

<script src="http://canvasjs.com/assets/script/canvasjs.min.js"></script>
<br/><!-- Just so that JSFiddle's Result label doesn't overlap the Chart -->
<div id="chartContainer" style="height: 360px; width: 100%;"></div>

JavaScript

var chart = new CanvasJS.Chart("chartContainer",
{        
	data: [
	{
		type: "splineArea",
		dataPoints: [
			{ x: 10, y: 71, color: 'rgb(90, 220, 0)', lineColor: 'rgb(90, 220, 0)', backgroundColor: 'rgb(90, 220, 0)', fillColor: 'rgb(90, 220, 0)' },
			{ x: 20, y: 55, color: 'rgb(90, 220, 0)', lineColor: 'rgb(90, 220, 0)', backgroundColor: 'rgb(90, 220, 0)', fillColor: 'rgb(90, 220, 0)' },
			{ x: 30, y: 50, color: 'rgb(90, 220, 0)', lineColor: 'rgb(90, 220, 0)', backgroundColor: 'rgb(90, 220, 0)', fillColor: 'rgb(90, 220, 0)' },
			{ x: 40, y: 10, color: 'rgb(90, 220, 0)', lineColor: 'rgb(90, 220, 0)', backgroundColor: 'rgb(90, 220, 0)', fillColor: 'rgb(90, 220, 0)' },
			{ x: 50, y: -1, color: 'rgb(170, 0, 0)', lineColor: 'rgb(170, 0, 0)', backgroundColor: 'rgb(170, 0, 0)', fillColor: 'rgb(170, 0, 0)' },
			{ x: 60, y: -10, color: 'rgb(170, 0, 0)', lineColor: 'rgb(170, 0, 0)', backgroundColor: 'rgb(170, 0, 0)', fillColor: 'rgb(170, 0, 0)' },
			{ x: 70, y: -50, color: 'rgb(170, 0, 0)', lineColor: 'rgb(170, 0, 0)', backgroundColor: 'rgb(170, 0, 0)', fillColor: 'rgb(170, 0, 0)' },
			{ x: 80, y: 20, color: 'rgb(90, 220, 0)', lineColor: 'rgb(90, 220, 0)', backgroundColor: 'rgb(90, 220, 0)', fillColor: 'rgb(90, 220, 0)' },
			{ x: 90, y: 14, color: 'rgb(90, 220, 0)', lineColor: 'rgb(90, 220, 0)', backgroundColor: 'rgb(90, 220, 0)', fillColor: 'rgb(90, 220, 0)' }
		]
	}					
	]
});

chart.render();