Highcharts Demo
author(s):
Torstein Hønsi
by Emmanuel Umozurike
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 400px"></div>
JavaScript
Highcharts.chart('container', {
chart: {
type: 'column'
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
plotOptions: {
series: {
dataLabels: {
enabled: true,
borderRadius: 5,
backgroundColor: 'rgba(252, 255, 197, 0.7)',
borderWidth: 1,
borderColor: '#AAA',
shape: 'callout',
y: -10,
x: 20
}
}
},
series: [{
name: 'Planned',
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
color: '#051861'
},
{
name: 'Actual',
data: [20.9, 41.5, 60.4, 89.2, 44.0, 76.0, 35.6, 48.5, 56.4, 94.1, 65.6, 84.4],
color: '#27AE60'
}
]
});