HSI UGRD Enroll
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
Highcharts.chart('container', {
chart: {
type: 'spline'
},
title: {
text: 'Sonoma State Percent of All Hispanic/Latino Undergrad Enrollment By Race & Ethnicity'
},
subtitle: {
text: ''
},
xAxis: {
categories: ['Fall 2012', 'Fall 2013', 'Fall 2014', 'Fall 2015', 'Fall 2016']
},
yAxis: {
title: {
text: 'Percentage'
},
labels: {
formatter: function () {
return this.value + '%';
}
}
},
tooltip: {
crosshairs: true,
shared: true
},
plotOptions: {
spline: {
dataLabels: {
enabled: true
},
marker: {
radius: 4,
lineColor: '#666666',
lineWidth: 1
}
}
},
series: [{
name: 'Hispanic/Latino Undergrads',
marker: {
symbol: 'square'
},
dataLabels: {
enabled: true,
formatter: function() {
return this.y + '%';
}
},
data: [22, 25, 28, 31, 33]
}]
});