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

Highcharts.chart('container', {
    chart: {
        type: 'line',
        backgroundColor: '#f3f3f3',
        style: {
            fontFamily: 'Arial',
            color: '#4f4f4f'
        },
        height: 350,
        width: 800
    },
    credits: {
    	enabled: false
    },
    exporting: {
    		enabled: false
    },
    title: {
        text: ' '
    },
    subtitle: {
        text: ' '
    },
    xAxis: {
        categories: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
        labels: {
            style: {
                color: '#4f4f4f',
                fontSize: '14px',
                fontFamily: 'Arial'
            }
        },
        tickLength: 0
    },
    yAxis: {
        title: {
            text: ' '
        },
        tickInterval: 5,
        gridLineColor: '#999',
        labels: {
            style: {
                color: '#4f4f4f',
                fontSize: '14px',
                fontFamily: 'Arial'
            }
        }
    },
    tooltip: {
        pointFormat: '{series.name} produced <b>{point.y:,.0f}</b><br/>warheads in {point.x}'
    },
    plotOptions: {
        area: {
            marker: {
                enabled: false,
                symbol: 'circle',
                radius: 2,
                states: {
                    hover: {
                        enabled: true
                    }
                }
            }
        }
    },
    legend: {
            itemStyle: {
                color: '#4f4f4f',
                fontSize: '14px',
                fontWeight: 'normal',
                fontFamily: 'Arial'
            }
    },
    series: [{
        name: 'NPS',
        color: '#00adb5',
        data: [55, 50, 55, 50, 55, 50],
        marker: {
        		radius: 4,
            fillColor: '#37c4cb',
            lineColor: '#00adb5',
            lineWidth: 2,
            symbol: 'circle'
        }
    },{
        name: 'Target',
      ...