Basic Column Chart - CanvasJS

Basic Column Chart

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", {
	title: {
  	text: "axisY.margin works; axisY2.margin not"
  },
  axisY: {
  	title: 'axisY',
  	margin: 50
  },
  axisY2: {
  	title: 'axisY2',
  	margin: 50
  },
	data: [
    {
      type: "column",
      dataPoints: [
        { x: 1, y: 10 },
        { x: 2, y: 8 },
        { x: 3, y: 12 },
        { x: 4, y: 6 },
        { x: 5, y: 9 }
      ]
    },
    {
			type: "column",
      dataPoints: [
        { x: 1, y: 12 },
        { x: 2, y: 8 },
        { x: 3, y: 9 },
        { x: 4, y: 5 },
        { x: 5, y: 7 }
      ],
			axisYType: "secondary"
    }
  ]
});

chart.render();