Nationwide Trend Chart
by Danielle Parkinson
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 400px; height: 400px; margin: 0 auto"></div>
CSS
body{
background:#fff;
}
JavaScript
$(function () {
$('#container').highcharts({
chart: {
type: 'line',
width: 1100,
height: 380,
backgroundColor: '#fff'
},
title: {
text: ' '
},
xAxis: {
categories: ['Jan 2015', 'Feb 2015', 'Mar 2015', 'Apr 2015', 'May 2015', 'Jun 2015','Jul 2015', 'Aug 2015', 'Sep 2015', 'Oct 2015', 'Nov 2015', 'Dec 2015'],
title: {
text: null
}
},
yAxis: {
tickInterval: 10,
title: {
text: ' ',
style: {
fontWeight: 'normal'
}
}
},
tooltip: {
valueSuffix: ' millions'
},
plotOptions: {
column: {
dataLabels: {
y: 20,
color: '#ffffff',
enabled: true
}
}
},
legend: {
borderWidth: 0,
itemStyle: {
fontWeight: 'normal'
}
},
credits: {
enabled: false
},
series: [{
name: 'Branch Overall',
data: [80,85,80,85,80,85,80,85,80,85,80,85],
dataLabels: {
enabled: false
},
color: '#002878',
marker: {
enabled: true
}
},{
name: 'Direct Overall',
data: [75,80,75,80,75,80,75,80,75,80,75,80],
dataLabels: {
enabled: false
},
color: '#dc291e',
marker: {
enabled: true
}
},{
...