JavaScript
Highcharts.chart('container', {
chart: {
type: 'column'
},
title: {
text: ' '
},
xAxis: {
categories: ['Pace of globalization', 'Adoption of protectionist policies', 'Immigration levels', 'Public trust in business', 'Inflation','Interest rates', 'Tax rates'],
labels: {
style: {
fontFamily: 'Arial',
fontSize: '12px',
color: '#333333',
},
},
},
yAxis: {
min: 0,
title: {
text: ' '
},
labels: {
style: {
fontFamily: 'Arial',
fontSize: '12px',
color: '#333333',
},
},
stackLabels: {
enabled: false,
style: {
fontWeight: 'normal',
fontcolor: '#333',
}
}
},
legend: {
align: 'center',
x: -30,
verticalAlign: 'bottom',
y: 25,
floating: false,
backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || 'white',
borderColor: '#fff',
borderWidth: 1,
shadow: false
},
tooltip: {
headerFormat: '<b>{point.x}</b><br/>',
pointFormat: '{series.name}: {point.y}<br/>Total: {point.stackTotal}'
},
plotOptions: {
column: {
stacking: 'normal',
dataLabels: {
enabled: false,
color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white'
}
}
},
series: [{
name: 'Increase',
data: [64,31,37,35,51,53,67],
color: '#0091da',
}, {
name: 'Stay the Same',
data: [33,51,52,45,39,40,30],
color: '#483698',
}, {
name: 'Decline',
data: [4,17,11,20,10,7,3],
color: '#00338d',
}]
});