Highcharts Demo

author(s): Torstein Hønsi

by mlmason

HTML

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

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

JavaScript

$(function () {
    // Create the chart
    Highcharts.chart('container', {
        chart: {
            type: 'column'
        },
        title: {
            text: 'OTHER'
        },
        subtitle: {
            text: 'SOURCE'
        },
        xAxis: {
            type: 'category'
        },
        yAxis: {
            title: {
                text: 'SOMETHING HERE'
            }

        },
        legend: {
            enabled: false
        },
        plotOptions: {
            series: {
                borderWidth: 0,
                dataLabels: {
                    enabled: true,
                    format: '{point.y:.0f}'
                }
            }
        },

      /*  tooltip: {
            headerFormat: '<span style="font-size:11px">{series.name}</span><br>',
            pointFormat: '<span style="color:{point.color}">{point.name}</span>: <b>{point.y:.2f}%</b> of total<br/>'
        },*/

        series: [{
            name: 'Words',
            colorByPoint: true,
            data: [{
                name: 'International Trade',
                y: 10,
                drilldown: 'International Trade'
            }, {
                name: 'Leadership',
                y: 17,
                drilldown: 'Leadership'
            }, {
                name: 'Skilled Trades',
                y: 14,
                drilldown: 'Skilled Trades'
            },]
        }],
        drilldown: {
            series: [{
                name: 'International Trade',
                id: 'International Trade',
                data: [
                    [
                        '2011',
                        6
                    ],
                    [
                        '2012',
                        2
                    ],
                    [
                        '2013',
                        0
                    ],
                    [
                        '2014',
                        2
                    ],
                   ...