JavaScript
$(function () {
$('#container').highcharts({
chart: {
type: 'column'
},
title: {
text: 'IPEDS Ethnicity Breakdown by Major in Education, Fall 2015'
},
xAxis: {
categories: [
'Early Childhood Edu.',
'Education',
'Educ.-Admin.',
'Educ.-Curric.',
'Educ.-Read & Lang.',
'Educ.-Special Ed.'
],
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, 0, 0, 0, 0]
}, {
name: 'Asian Only',
data: [13, 0, 2, 2, 0, 0]
}, {
name: 'Black Only',
data: [2, 0, 0, 0, 0, 0]
}, {
name: 'Hisp/Lat.',
data: [92, 5, 4, 4, 1, 1]
}, {
name: 'Multiracial',
data: [17, 0, 0, 1, 1, 1]
}, {
name: 'PacIs Only',
data: [2, 0, 0, 0, 0, 0]
}, {
name: 'Unknown',
data: [23, 0, 8, 3, 1, 0]
}, {
name: 'White Only',
data: [156, 10, 24, 21, 5, 10]
}]
});
});