Grad Rates 09-12 Blackboard

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

$(function () {
    $('#container').highcharts({
        title: {
            text: '4 Year Graduation Rates, 2009-2012',
            x: -20 //center
        },
        subtitle: {
            text: 'Source: Blackboard Analytics',
            x: -20
        },
        xAxis: {
            categories: ['2009', '2010', '2011', '2012']
        },
        yAxis: {
            title: {
                text: 'Graduation rate (%)'
            },
            plotLines: [{
                value: 0,
                width: 1,
                color: '#808080'
            }]
        },
        tooltip: {
            valueSuffix: '%'
        },
        legend: {
            layout: 'vertical',
            align: 'right',
            verticalAlign: 'middle',
            borderWidth: 0
        },
        series: [{
            name: 'Am. Ind./Alaska Nat.',
            data: [20, 28, 13, 75]
        }, {
            name: 'Asian',
            data: [31, 21, 30, 20]
        }, {
            name: 'Black/African Am.',
            data: [15, 19, 9, 32]
        }, {
            name: 'Hispanic or Latino',
            data: [21, 20, 21, 19]
        }, {
            name: 'White',
            data: [33, 34, 36, 35]
        }, {
            name: 'Race/Eth. unknown',
            data: [23, 30, 27, 26]
       
        }]
    });
});