CEE 6 Pillars 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; max-width: 800px; height: 400px; margin: 0 auto"></div>

JavaScript

Highcharts.chart('container', {
    chart: {
        type: 'bar',
        backgroundColor: '#e5e5e5',
        style: {
            fontFamily: 'Arial',
            color: '#333'
        },
        height: 440,
        width: 780
    },
    exporting: {
    		enabled: false
    },
    title: {
        text: ' '
    },
    subtitle: {
        text: ' '
    },
    xAxis: {
        categories: ['CEE Score', 'Personalisation', 'Integrity', 'Expectations', 'Time & Effort', 'Resolution', 'Empathy'],
        title: {
            text: null
        },
        visible: false,
        tickLength: 0,
        lineColor: 'transparent',
        lineWidth: 0,
        labels: {
            style: {
                color: '#333',
                fontSize: '14px',
                fontFamily: 'Arial'
            }
        }
    },
    yAxis: {
    		visible: false,
    		min: -1,
        tickInterval: 1,
        title: {
            text: ' ',
        },
        labels: {
          enabled: false
        }
    },
    tooltip: {
        valueSuffix: ' millions'
    },
    plotOptions: {
        bar: {
            pointPadding: 0.1,
            groupPadding: 0.03,
            borderWidth: 0, 
            colorByPoint: true,
            colors: [
              '#acacac',
              '#eaaa00',
              '#005eb8',
              '#470a68',
              '#f68d2e',
              '#00a3a1',
              '#bc204b'
            ],
            
            dataLabels: {
              enabled: true,
              verticalAlign: 'middle',
              x: -45,
              formatter: function () {
                return Highcharts.numberFormat(this.y,2);
              },
              style: {
                fontFamily: 'Arial',
                fontWeight: 'bold',
                textShadow: false,
                textOutline: false,
                fontSize: '12px',
                color: '#ffffff',
              },    
            },
        },
    },
    legend: {
        enabled:...