Highcharts Demo
author(s): Torstein Hønsi
by easter bunny
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.chart('container', {
chart: {
type: 'line'
},
title: {
text: 'Patient Demographic Chart (2018)'
},
subtitle: {
text: 'Monthly Data'
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
yAxis: {
title: {
text: 'Number Of Patients'
}
},
plotOptions: {
line: {
dataLabels: {
enabled: true
},
enableMouseTracking: false
}
},
series: [{
name: 'Child (Age : Less Than 18)',
data: [73, 56, 99, 149, 23, 21, 25, 26, 56, 18, 137, 96]
}, {
name: 'Adult (Age : 18 Or Above)',
data: [39, 42, 57, 85, 119, 152, 170, 166, 142, 103, 66, 48]
}]
});