Nunwood VOC Bar 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; max-width: 800px; height: 400px; margin: 0 auto"></div>
JavaScript
Highcharts.chart('container', {
chart: {
type: 'bar',
backgroundColor: '#201F2D',
style: {
fontFamily: 'Chivo',
color: '#e6e6e6'
},
height: 380,
width: 380
},
exporting: {
enabled: false
},
title: {
text: ' '
},
subtitle: {
text: ' '
},
xAxis: {
categories: ['Team 1', 'Team 2', 'Team 3', 'Team 4', 'Team 5', 'Team 6', 'Team 7', 'Team 8'],
title: {
text: null
},
tickLength: 0,
labels: {
style: {
color: '#e6e6e6',
fontSize: '14px',
fontFamily: 'Chivo'
}
}
},
yAxis: {
min: 0,
tickInterval: 5,
gridLineColor: '#999',
title: {
text: ' ',
align: 'high'
},
labels: {
overflow: 'justify'
},
labels: {
style: {
color: '#e6e6e6',
fontSize: '14px',
fontFamily: 'Chivo'
}
}
},
tooltip: {
valueSuffix: ' millions'
},
plotOptions: {
bar: {
dataLabels: {
enabled: false,
},
pointPadding: 0.1,
groupPadding: 0.1,
borderWidth: 0
},
series: {
dataLabels: {
enabled: false,
style: {
color: '#e6e6e6',
fontSize: '12px',
fontWeight: 'normal',
textOutline: false,
fontFamily: 'Chivo'
}
}
}
},
legend: {
layout: 'horizontal',
itemStyle: {
color: '#e6e6e6',
fontSize: '14px',
fontWeight: 'normal',
fontFamily: 'Chivo'
}
},
credits: {
enabled: false
...