JavaScript
$(function () {
$('#container').highcharts({
chart: {
type: 'column'
},
title: {
text: 'IPEDS Ethnicity Breakdown by Major in Science and Technology, Fall 2015'
},
xAxis: {
categories: [
'Applied Statistics',
'Biochemistry',
'Biology',
'Biology-Molecular & Cellular',
'Biology-Zoology',
'Chemistry',
'Computer Science',
'Earth Science',
'Electrical Engineering',
'Geology',
'Kinesiology',
'Math',
'Nursing',
'Physics',
'Prenursing',
'Statistics'
],
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: [0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 1, 2, 4, 0, 1, 0]
}, {
name: 'Asian Only',
data: [0, 15, 22, 3, 0, 3, 19, 0, 16, 3, 26, 1, 30, 1, 16, 4]
}, {
name: 'Black Only',
data: [0, 5, 8, 1, 0, 5, 8, 0, 5, 1, 11, 0, 6, 0, 0, 1]
}, {
name: 'Hisp/Latino',
data: [3, 46, 112, 7, 2, 18, 67, 4, 40, 13, 84, 29, 16, 9, 36, 2]
}, {
name:...