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: 'The Snyder Lexicon'
        },
        subtitle: {
            text: ''
        },
        xAxis: {
            type: 'category'
        },
        yAxis: {
            title: {
                text: 'Number of Mentions'
            }

        },
        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: 'Number of Mentions',
            colorByPoint: true,
            data: [{
                name: 'Talent',
                y: 27,
                drilldown: 'Talent'
            }, {
                name: 'Shout Out',
                y: 36,
                drilldown: 'Shout Out'
            }, {
                name: 'Entrepreneurs',
                y: 14,
                drilldown: 'Entrepreneurs'
            }, {
                name: 'Dashboard',
                y: 23,
                drilldown: 'Dashboard'
            }, {
                name: 'Relentless Positive Action',
                y: 14,
                drilldown: 'Relentless Positive Action'
            }, ]
        }],
        drilldown: {
            series: [{
                name: 'Talent',
                id: 'Talent',
                data: [
                    [
                        '2011',
                        8
                    ],
                    [
                        '2012',
                        5
                  ...