Ethnicity by Major in Bus and Econ, Fall 2015

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({
        chart: {
            type: 'column'
        },
        title: {
            text: 'IPEDS Ethnicity Breakdown by Major in Business and Economics, Fall 2015'
        },
        xAxis: {
            categories: [
                'Business',
                'Bus-Accounting',
                'Bus-Finance',
                'Bus-Marketing',
                'Bus-Wine',
                'Economics'
            ],
            crosshair: true
        },
        yAxis: {
            min: 0,
            title: {
                text: 'Number of Students'
            }
        },
        tooltip: {
            headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
            pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
                '<td style="padding:0"><b>{point.y}</b></td></tr>',
            footerFormat: '</table>',
            shared: true,
            useHTML: true
        },
        plotOptions: {
            column: {
                pointPadding: 0.2,
                borderWidth: 0
            }
        },
        series: [{
            name: 'AmInd Only',
            data: [4, 1, 0, 0, 0, 2]
        }, {
            name: 'Asian Only',
            data: [53, 23, 3, 6, 2, 9]
        }, {
            name: 'Black Only',
            data: [15, 4, 1, 6, 0, 4]
        }, {
            name: 'Hisp/Lat.',
            data: [228, 86, 17, 43, 19, 31]
        }, {
            name: 'Multiracial',
            data: [62, 20, 5, 10, 4, 5]
        }, {
            name: 'PacIs Only',
            data: [2, 0, 1, 0, 1, 0]
        }, {
            name: 'Unknown',
            data: [75, 18, 10, 10, 11, 9]
        }, {
            name: 'White Only',
            data: [478, 112, 45, 113, 52, 67]
        }]
    });
});