ONA 16 Board - Members - Age
by Adam Nekola
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<div id="container" style="min-width: 310px; height: 350px; margin: 0 auto"></div>
JavaScript
$(function () {
Highcharts.setOptions({
lang: {
thousandsSep: ","
}
});
Highcharts.chart('container', {
title: {
text: 'Membership by Age',
align: 'left',
style: {
fontWeight: 800,
fontSize: "2em"
}
},
series: [{
name: 'Age',
data: [{
name: '18-24',
y: 105
}, {
name: '25-34',
y: 475
}, {
name: '35-44',
y: 434
}, {
name: '45-54',
y: 313
}, {
name: '55-64',
y: 152
}, {
name: '65+',
y: 33
}, {
name: 'Not reported',
y: 1092
}]
}],
xAxis: {
categories: [
'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
],
tickLength: 0,
lineColor: "#eeeeee"
},
yAxis: {
min: 0,
max: 3000,
endOnTick: false,
title: {
text: 'Followers',
align: "low"
}
},
chart: {
type: 'pie',
style: {
fontFamily: "\"Source Sans Pro\", Verdana, Arial, Helvetica, sans-serif"
}
},
plotOptions: {
column: {
pointPadding: 0,
borderWidth: 0
},
series: {
stacking: "normal",
marker: false
},
pie: {
dataLabels: {
enabled: true,
format: '<span style="font-weight:600;">{point.name}</span>: {point.percentage:.1f} %',
style: {
color:...