Highcharts Demo

author(s): Torstein Hønsi

by linus

HTML

<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<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: 400px; height: 400px; margin: 0 auto"></div>

JavaScript

Highcharts.chart('container', {
    chart: {
        type: 'bar'
    },
    title: {
        text: 'Efficiency Optimization by Branch'
    },
    xAxis: {
        categories: [
            'Electronics',
            'Fashion',
            'H&G',
            'P&A',
            'BI',
            'Life style',
            'Collectibles',
            'Media'
        ]
    },
    yAxis: [{
        min: 0,
        title: {
            text: 'Employees'
        }
    }],
    legend: {
        shadow: false
    },
    tooltip: {
        shared: true
    },
    plotOptions: {
        bar: {
            grouping: false,
            shadow: false,
            borderWidth: 0
        }
    },
    series: [{
        name: '2016',
        color: 'rgba(165,170,217,1)',
        data: [150, 73, 20, 30, 50, 90],
        
    }, {
        name: '2017',
        color: 'rgba(126,86,134,.9)',
        data: [140, 90, 40, 30, 50, 90]
    }]
});