Fall 15 Faculty Ethnicity

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; max-width: 900px; margin: 0 auto"></div>

JavaScript

Highcharts.chart('container', {
    chart: {
        plotBackgroundColor: null,
        plotBorderWidth: null,
        plotShadow: false,
        type: 'pie'
    },
    title: {
        text: 'Fall 2015 Faculty Diversity Data--Ethnicity'
    },
    tooltip: {
        pointFormat: '{series.name}: <b>{point.y}%</b>'
    },
    plotOptions: {
        pie: {
            allowPointSelect: true,
            cursor: 'pointer',
            dataLabels: {
                enabled: true,
                format: '<b>{point.name}</b>: {point.y} %',
                style: {
                    color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
                }
            }
        }
    },
    series: [{
        name: 'Faculty',
        colorByPoint: true,
        data: [{
            name: 'AmInd',
            y: 1
        }, {
            name: 'Asian',
            y: 4
        }, {
            name: 'Black',
            y: 1
        }, {
            name: 'Hispanic',
            y: 6
        }, {
            name: 'Pacific Islander',
            y: 0
        }, {
            name: 'Two or More Ethnicities',
            y: 1
       }, {
            name: 'Unknown',
            y: 17
      }, {
            name: 'White',
            y: 71
        }]
    }]
});