Veneto Transfer F16

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

JavaScript

$(function () {
    $('#container').highcharts({
        chart: {
            plotBackgroundColor: null,
            plotBorderWidth: null,
            plotShadow: false,
            type: 'pie'
        },
        title: {
            text: 'Transfer Student Ethnicities in Veneto, Fall 2016'
        },
        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: 'Ethnicity',
            colorByPoint: true,
            data: [{
                name: 'AmInd Only',
                y: 0
            }, {
                name: 'Asian Only',
                y: 25
            }, {
                name: 'Black Only',
                y: 0
            }, {
                name: 'Hisp/Lat',
                y: 25
            }, {
                name: 'Mult. Races',
                y: 25
            }, {
                name: 'PacIs Only',
                y: 0
            }, {
                name: 'Unknown',
                y: 0
           }, {
                name: 'White Only',
                y: 25
            }]
        }]
    });
});