CX Economics

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: '#272a2a',
        style: {
            fontFamily: 'Lato',
            color: '#fff'
        },
        height: 420,
        width: 1500
    },
    exporting: {
    		enabled: false
    },
    title: {
        text: ' '
    },
    subtitle: {
        text: ' '
    },
    xAxis: {
        categories: ['Phone', 'Paper', 'Email', 'WebChat'],
        title: {
            text: null
        },
        tickLength: 0,
        labels: {
            style: {
                color: '#fff',
                fontSize: '14px',
                fontFamily: 'Lato'
            }
        }
    },
    yAxis: {
        min: 0,
        max: 100,
        //tickInterval: 5,
        gridLineColor: '#999',
        title: {
            text: ' ',
            align: 'high'
        },
        labels: {
            overflow: 'justify'
        },
        labels: {
            style: {
                color: '#fff',
                fontSize: '14px',
                fontFamily: 'Lato'
            }
        }
    },
    tooltip: {
        valueSuffix: '%'
    },
    plotOptions: {
        bar: {
            dataLabels: {
                enabled: false,
            },
            pointPadding: 0.1,
            groupPadding: 0.1,
            borderWidth: 0
        },
        series: {
        		dataLabels: {
            		enabled: false,
                style: {
                    color: '#e6e6e6',
                    fontSize: '12px',
                    fontWeight: 'normal',
                    textOutline: false,
                    fontFamily: 'Chivo'
                }
            }
        }
    },
    legend: {
        layout: 'horizontal',
        itemStyle: {
                color: '#fff',
                fontSize: '14px',
                fontWeight: 'normal',
                fontFamily: 'Lato'
            }
    },
    credits: {
        enabled: false
    },
    series: [{
        name: 'Contact to...