B&E Students

by Kathryn Atwood

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.setOptions({
    colors: ['#2F2E33', '#3A5199', '#D5D6D2', '#FFFFFF']
});

Highcharts.chart('container', {
    chart: {
        type: 'line'
    },
    title: {
        text: 'Total Student Headcount in Business & Economics, 2013-2018'
    },
    subtitle: {
        text: 'Includes graduate students and undergraduate students enrolled in a major and/or minor in the School of Business and Economics'
        },
    credits: {
        enabled: false
    },
    xAxis: {
        categories: ['2013', '2014', '2015', '2016', '2017', '2018']
    },
    yAxis: {
    min: 0,
            max: 3000,
            tickInterval: 500,

        title: {
            text: 'Number of students'
        }
    },
    plotOptions: {
        line: {
            dataLabels: {
                enabled: true
            },
            enableMouseTracking: false
        }
    },
    series: [{
        name: 'Graduate students',
        data: [151, 167, 192, 210, 186, 175]
    }, {
        name: 'Undergraduate students',
        data: [2406, 2318, 2366, 2301, 2244, 2246]
    }]
});