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: 400px"></div>

JavaScript

Highcharts.chart('container', {
    chart: {
        marginTop: 5,
        type:"column"
    },

    title: {
        text: 'Data labels box options'
    },

    subtitle: {
        text: 'backgroundColor, borderColor, borderRadius, borderWidth, padding and shadow'
    },

    xAxis: {
        categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
    },

    plotOptions: {
        series: {
            dataLabels: {
                enabled: true,
            		top: true,
            		verticalAlign: "top",
            		inside: true,  
            }
        }
    },

    series: [{
        data: [  144.0, 178.0, 135.6, 148.5 , 194.1, 95.6, 54.4]
    }]

});