Highcharts Demo
author(s):
Torstein Hønsi
by Kathryn Atwood
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
JavaScript
Highcharts.setOptions({
colors: ['#2F2E33', '#3A5199', '#D5D6D2', '#FFFFFF']
});
Highcharts.chart('container', {
chart: {
type: 'line'
},
title: {
text: 'Total Student Enrollment in Education, 2015-2018'
},
subtitle: {
text: 'Includes graduate/credential students and undergraduate students actively enrolled in a major and/or minor in the School of Education.'
},
credits: {
enabled: false
},
xAxis: {
categories: ['2015', '2016', '2017', '2018']
},
yAxis: {
min: 0,
max: 600,
tickInterval: 200,
title: {
text: 'Number of students'
}
},
plotOptions: {
line: {
dataLabels: {
enabled: true
},
enableMouseTracking: false
}
},
series: [{
name: 'Graduate/Credential students',
data: [449, 418, 368, 316]
}, {
name: 'Undergraduate students',
data: [381, 456, 446, 468]
}]
});