ONA 16 Board - Mailchimp - Sends/Opens
by Adam Nekola
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<div id="container" style="width: 500px; height: 350px; margin: 0 auto"></div>
JavaScript
$(function () {
Highcharts.setOptions({
lang: {
thousandsSep: ","
}
});
Highcharts.chart('container', {
title: {
text: 'Deliveries and Opens',
align: 'left',
style: {
fontWeight: 800,
fontSize: "2em"
}
},
series: [{
name: 'Delivered Emails',
data: [284.8,395.9,398.0,670.8,821.4,{
y: 958.4
}],
dataLabels: {
enabled: true,
rotation: -60,
color: '#213563',
align: 'right',
format: '{point.y:,.1f}', // one decimal
y: -30, // 10 pixels down from the top
x: 6,
style: {
fontSize: '13px',
textOutline: 0
}
},
marker: {
fillColor: '#213563'
}
}, {
name: 'Unique Opens',
data: [61.2,88.7,87.9,162.7,187.6,215.0],
}],
xAxis: {
categories: [
'2011',
'2012',
'2013',
'2014',
'2015',
'2016'
],
tickLength: 0,
lineColor: "#eeeeee"
},
yAxis: {
min: 0,
max: 1200,
endOnTick: false,
title: {
text: 'Total emails (in thousands)',
align: "low"
}
},
chart: {
type: 'column',
style: {
fontFamily: "\"Source Sans Pro\", Verdana, Arial, Helvetica, sans-serif"
}
},
plotOptions: {
column: {
pointPadding: 0.05,
groupPadding: 0.1,
borderWidth: 0
}
},
colors: ["#63bad6",'#213563'],
tooltip: { enabled: false },
...