JavaScript
Highcharts.chart('container', {
chart: {
type: 'column'
},
title: {
text: 'Membership Numbers Changing Over Time'
},
subtitle: {
text: 'Source: http://www.aflonline.com.au/afl-news/current-afl-membership-numbers-for-2016/'
},
xAxis: {
categories: [
'Adelaide','Brisbane Lions',
'Carlton',
'Collingwood',
'Essendon',
'Fremantle',
'Geelong',
'Gold Coast',
'GWS Giants',
'Hawthorn',
'Melbourne',
'North Melb',
'Port Adelaide',
'Richmond',
'St Kilda',
'Sydney',
'West Coast',
'Western Bulldogs'
]//,
// crosshair: true
},
yAxis: {
min: 0,
title: {
text: 'Members (k)'
}
},
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,
valueSuffix: 'k'
},
series: [{
name: '2015',
data: [60.383,20.660,45.194, 55.000, 50.442, 46.283, 46.764, 10.946, 10.247, 69.006, 34.023, 37.635, 57.195, 70.021, 34.246, 42.646, 59.363, 30.027]
}, {
name: '2016',
data: [52.920, 25.408,47.305, 75.037, 60.818, 51.433, 44.312, 13.643, 13.480, 72.924, 35.953, 41.012, 54.057, 70.809, 32.746, 48.36, 60.221, 35.222 ]
}]
});