Highcharts Demo

author(s): Torstein Hønsi

by Arvind Pal

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>

<div id="container" style="height: 300px"></div>

JavaScript

Highcharts.chart('container', {
    chart: {
        marginTop: 5,
        type:"column"
    },
    title: {
        text: 'Flats sold per month'
    },
      plotOptions: {
        column: {
          colorByPoint: true,
          dataLabels: {
            enabled: true,
            inside: true,
            top: true,
            verticalAlign: "top"
          }
        }
      },

    xAxis: {
        categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
        labels:{ 
        		y:-5,
            reserveSpace: false,
            align: 'left',
          	style:{
          		color:'black',
          		"font-size":12
          	} ,
       			rotation:-90
        },
        tickWidth: 0
    },

    yAxis: {
        gridLineWidth: 0, 
        title: {
            text: 'Flats'
        },
        style:{
        stroke:"red"
        }
    },

    series: [{
        data: [1, 3, 5, 2, 3, 9, 6, 7, 3, 5, 4, 3]
    }]
});