CEO Line Chart
by Danielle Parkinson
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
$('#container').highcharts({
chart: {
type: 'spline',
width: 1100,
height:500,
backgroundColor: '#fff'
},
title: {
text: ' '
},
xAxis: {
categories: ['Jan 2016', 'Feb 2016', 'Mar 2016', 'Apr 2016', 'May 2016', 'Jun 2016','Jul 2016', 'Aug 2016', 'Sep 2016', 'Oct 2016', 'Nov 2016', 'Dec 2016', 'Jan 2017'],
title: {
text: null
},
labels: {
style: {
fontFamily: 'Arial',
fontSize: '12px',
color: '#333333',
}
},
},
yAxis: {
tickInterval: 10,
title: {
text: ' ',
},
labels: {
style: {
fontFamily: 'Arial',
fontSize: '12px',
color: '#333333',
}
},
},
tooltip: {
valueSuffix: ' millions'
},
plotOptions: {
column: {
dataLabels: {
y: 20,
color: '#ffffff',
enabled: true
}
}
},
legend: {
layout: 'horizontal',
borderWidth: 0,
itemStyle: {
fontWeight: 'normal'
}
},
credits: {
enabled: false
},
series: [{
name: 'The depth of our customer insight is hindered by a lack of quality customer data',
data: [80,85,80,85,80,85,80,85,80,85,80,85,80],
dataLabels: {
...