JSFiddle - React, Tailwind, and code Playground
Data communication methods used weekly, by different age groups CROPPED
by pepperdigital
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: 'column'
},
credits: {
enabled: false
},
exporting: {
enabled: false
},
colors: ['#012169', '#00A3E0', '#046A38', '#0097A9', '#62B5E5',
'#00A3E0', '#0076A8', '#012169', '#2C5234', '#C4D600'],
title: {
text: ''
},
tooltip: {
formatter: function () {
return this.series.name +
'<br><b>' + this.y + '%</b>';
}
},
xAxis: {
categories: [
'Social networks',
'Emails',
'Instant messaging app',
'Voice calls using the Internet (VoIP)',
'Video calls',
'Group video call'
]
},
yAxis: {
min: 0,
max: 90,
labels: {
format: '{value}%'
},
title: {
text: ''
}
},
legend: {
enabled: true
},
series: [
{
name: '16-24',
data: [
87,
84,
84,
41,
26,
24
]
},
{
name: '65-75',
data: [
39,
54,
37,
14,
9,
6
]
}
]
});