CEO Line 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({
            chart: {
                type: 'spline',
                width: 1100,
                height:450,
                backgroundColor: '#fff'
            },
            title: {
                text: ' '
            },
            xAxis: {
                categories: ['Very confident', 'Confident', 'Neutral', 'Not very confident', 'Not at all confident'],
                title: {
                    text: null
                },
                labels: {
                style: {
                    fontFamily: 'Arial',
                    fontSize: '12px',
                    color: '#333333',
                }
            },
                
            },
            yAxis: {
                tickInterval: 10,
                title: {
                    text: ' ',
                    },
                labels: {
                style: {
                    fontFamily: 'Arial',
                    fontSize: '12px',
                    color: '#333333',
                }
            },
               
            },
            tooltip: {
                valueSuffix: ' millions'
            },
            plotOptions: {
                column: {
                    dataLabels: {
                        y: 20,
                        color: '#ffffff',
                        enabled: true
                    }
                }
            },
            legend: {
            		layout: 'horizontal',
                borderWidth: 0,
                itemStyle: {
                    fontWeight: 'normal'
                }
            },
            credits: {
                enabled: false
            },
            series: [{
                name: 'Growth prospects for your country over the next 12 months',
                data: [30,49,15,6,0],
                dataLabels: {
                    enabled: false
                },
                color: '#00338d',
                marker: {
                   ...