A&H Students

author(s): Torstein Hønsi

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 Arts & Humanities, 2013-2017'
    },
    subtitle: {
        text: 'Includes graduate students and undergraduate students enrolled in a major and/or minor in the School of Arts and Humanities'
        },
    credits: {
        enabled: false
    },
    xAxis: {
        categories: ['2013', '2014', '2015', '2016', '2016']
    },
    yAxis: {
    min: 0,
            max: 3000,
            tickInterval: 500,

        title: {
            text: 'Number of students'
        }
    },
    plotOptions: {
        line: {
            dataLabels: {
                enabled: true
            },
            enableMouseTracking: false
        }
    },
    series: [{
        name: 'Graduate students',
        data: [96, 88, 85, 98, 95]
    }, {
        name: 'Undergraduate students',
        data: [2627, 2560, 2572, 2664, 2575]
    }]
});