Highcharts Demo

author(s): Torstein Hønsi

by Kondal Durgam

HTML

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

<div id="container" style="min-width: 300px; height: 400px; margin: 0 auto"></div>

JavaScript

Highcharts.chart('container', {
    chart: {
        type: 'column'
    },
    title: {
        text: '',
        align: 'left',
        x: 30,
        y:30
    },
    xAxis: {
        type: 'category',
        
    },
     credits: {
       			 enabled: false
    				},
            exporting: { 
            	enabled: false
             },
    yAxis: {
        min: 0,
        title: {
            text: ''
        }
    },
    legend: {
        enabled: false
    },
    tooltip: {
        pointFormat: 'Track Record <b>{point.y:1f}</b>'
    },
    series: [{
        name: 'Track',
        data: [
            ['Registered', 18000],
            ['Shortlisted', 12000],
            ['Confirmed', 7500],
            ['Attended', 4500],
            ['Completed', 4200],
            ['Passed', 4000],
            ['Employed',3800],
           
        ],
        dataLabels: {
            enabled: true,
            color: 'black',
            align: 'right',
            format: '{point.y:1f}', // one decimal
            y: 5, // 10 pixels down from the top
            style: {
                fontSize: '13px',
                fontFamily: 'Verdana, sans-serif'
            }
        }
    }]
});