Facility - Country Vs Audit Score Range
author(s):
Torstein Hønsi
by VivekChandravathi
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
JavaScript
Highcharts.chart('container', {
chart: {
type: 'column'
},
title: {
text: 'Country Vs BSCI Audit Score Range'
},
xAxis: {
categories: ['Sweden', 'Turkey', 'Vietnam', 'Japan', 'China'],
title: {
text: 'Countries'
}
},
yAxis: {
min: 0,
title: {
text: 'Facility'
},
stackLabels: {
enabled: true,
style: {
fontWeight: 'bold',
color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'
}
}
},
legend: {
align: 'right',
x: 5,
verticalAlign: 'top',
y: 28,
floating: true,
backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || 'white',
borderColor: '#CCC',
borderWidth: 1,
shadow: false
},
tooltip: {
headerFormat: '<b>No. of Facilities:</b><br/>',
pointFormat: '15'
},
plotOptions: {
column: {
stacking: 'normal',
dataLabels: {
enabled: true,
color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white'
}
}
},
series: [{
name: 'Outstanding',
data: [1, 1, 1, 1, 1]
}, {
name: 'Good',
data: [2, 2, 3, 2, 1]
}, {
name: 'Acceptable',
data: [3, 4, 4, 2, 5]
}, {
name: 'Insufficient',
data: [3, 4, 4, 2, 5]
}, {
name: 'Unacceptable',
data: [3, 4, 4, 2, 5]
},{
name: 'Zero Tolerance',
data: [3, 4, 4, 2, 5]
}]
});