Subsequent Enrollment

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: 300px; max-width: 800px; height: 1000px; margin: 1 auto"></div>

JavaScript

$(function () {
    Highcharts.chart('container', {
        chart: {
            type: 'bar'
        },
        title: {
            text: 'Outcomes, Subsequent Enrollment, and Graduation Rates for SSU First Time Freshmen Cohorts 2006-2010'
        },
        subtitle: {
            text: 'Each cohort reflects a six-year time period from their first fall semester.'
        },
        xAxis: {
            categories: ['2010 Cohort','2009 Cohort', '2008 Cohort', '2007 Cohort', '2006 Cohort'],
            title: {
                text: null,

            }
        },
        yAxis: {
            min: 0,
            title: {
                text: 'Number of students',
                align: 'high',

            },
            labels: {
                overflow: 'justify'
            }
        },
        tooltip: {
            valueSuffix: ' students'
        },
        plotOptions: {
            bar: {
                dataLabels: {
                    enabled: true,
                }
            }
        },
        legend: {
            layout: 'horizontal',
            align: 'center',
            verticalAlign: 'bottom',
            x: 10,
            y: 15,
            floating: false,
            borderWidth: 1,
            backgroundColor: ((Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'),
            shadow: true
        },
        credits: {
            enabled: false
        },
        series: [{
            name: 'First Time Freshmen',
            data: [1547, 1483, 1645, 1685, 1520]
        }, {
            name: 'FTF Graduated from SSU',
            data: [942, 865, 906, 907, 828]
        }, {
            name: 'FTF Graduated Elsewhere',
            data: [172, 236, 289, 283, 255]
      }, {
            name: 'FTF Enrolled SSU',
            data: [54, 37, 43, 59, 43]
      }, {
            name: 'FTF Enrolled Elsewhere',
            data: [169, 151, 201, 234, 185]
      }, {
            name: 'FTF Incomplete',
            data:...