CEO Bar Chart

by Danielle Parkinson

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: 310px; height: 400px; margin: 0 auto"></div>

JavaScript

$(function () {
    $('#container').highcharts({
    legend: {
            itemStyle: {
                color: '#333',
                fontFamily: 'Arial',
                fontSize: '12px',
                fontWeight: 'regular'
            }
        },
        chart: {
            type: 'column',
            backgroundColor: '#fff',
            width: 470,
            height: 381
        },
        credits: {
        		enabled: false
        },
        title: {
            text: ' '
        },
      
        subtitle: {
            text: ' '
        },
        xAxis: {
        labels: {
                style: {
                    fontFamily: 'Arial',
                    fontSize: '12px',
                    color: '#333',
                }
            },
            categories: [
                'Merging with another firm',
                'Buying business(es), assets or capabilities from other firms',
                'Selling business(es), assets or capabilities from other firms',
                'Creating partnerships/joint ventures/collaborative arrangements with other firms',
                'Changing the capital structure with debt/financing',
                'Changing the capital structure through equity',
                'No planned changes',
                'Others'
                
            ],
            crosshair: true
        },
        yAxis: {
        labels: {
                style: {
                    fontFamily: 'Arial',
                    fontSize: '12px',
                    color: '#333333',
                },
                },
           
            
        },
        tooltip: {
            headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
            pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
                '<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
            footerFormat: '</table>',
            shared: true,
            useHTML: true
        },
   ...