Nunwood VOC CSAT Breakdown Column Chart
author(s):
Torstein Hønsi
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
Highcharts.chart('container', {
chart: {
type: 'bar',
backgroundColor: '#201F2D',
style: {
fontFamily: 'Chivo',
color: '#e6e6e6'
},
width: 580,
height: 280
},
credits: {
enabled: false
},
exporting: {
enabled: false
},
title: {
text: ' '
},
subtitle: {
text: ' '
},
xAxis: {
categories: ['Very Dissatisfied','Dissatisfied','Neither','Satisfied','Very Satisfied'],
crosshair: true,
labels: {
style: {
color: '#e6e6e6',
fontSize: '12px'
}
},
tickLength: 0
},
yAxis: {
min: 0,
title: {
text: ' '
},
gridLineColor: '#999',
labels: {
style: {
color: '#e6e6e6',
fontSize: '12px'
}
}
},
tooltip: {
headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
'<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
footerFormat: '</table>',
shared: true,
useHTML: true
},
plotOptions: {
column: {
pointPadding: 0.1,
groupPadding: 0.1,
borderWidth: 0
},
series: {
dataLabels: {
enabled: false,
y: 25,
style: {
color: '#e6e6e6',
fontSize: '12px',
fontWeight: 'normal',
textOutline: false
}
}
}
},
legend: {
enabled: true,
itemStyle: {
color: '#e6e6e6',
fontSize: '12px',
fontWeight: 'normal'
}
},
series: [{
name: 'Credit Card',
color:...