15/16 Degrees Awarded

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: '2015/2016 Academic Year Degrees Awarded'
    },
    xAxis: {
      categories: ['Summer 2015', 'Fall 2015', 'Spring 2016']
    },
    yAxis: {
      min: 0,
      title: {
        text: 'Degrees Awarded'
      },
      stackLabels: {
        enabled: true,
        style: {
          fontWeight: 'bold',
          color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'
        }
      }
    },
    legend: {
      align: 'right',
      x: 0,
      verticalAlign: 'bottom',
      y: 20,
      floating: false,
      backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || 'white',
      borderColor: '#CCC',
      borderWidth: 0,
      shadow: false
    },
    tooltip: {
      headerFormat: '<b>{point.x}</b><br/>',
      pointFormat: '{series.name}: {point.y}<br/>Total: {point.stackTotal}'
    },
    plotOptions: {
      column: {
        stacking: 'normal',
        dataLabels: {
          enabled: true,
          color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white',
          style: {
            textShadow: '0 0 3px black'
          }
        }
      }
    },
    series: [{
      name: 'Arts and Humanities',
      data: [40, 90, 257]
    }, {
      name: 'Business and Economics',
      data: [41, 124, 224]
    }, {
      name: 'Education',
      data: [13, 20, 73]
    }, {
      name: 'Science and Technology',
      data: [41, 76, 288]
    }, {
      name: 'Social Science',
      data: [60, 213, 496]
    }]
  });
});