JSFiddle - React, Tailwind, and code Playground
Smartphone penetration
by age group between 2012 and 2017
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: 310
JavaScript
Highcharts.chart('container', {
chart: {
type: 'line'
},
credits: {
enabled: false
},
exporting: {
enabled: false
},
colors: ['#43B02A', '#046A38'],
title: {
text: ''
},
xAxis: {
categories: [
"All ages", "18-24", "25-34", "35-44", "45-54", "55+"
]
},
yAxis: {
min: 0,
max: 100,
labels: {
format: '{value}%'
},
title: {
text: ' '
},
title: {
enabled: false
}
},
legend: {
enabled: true
},
tooltip: {
valueSuffix: '%'
},
series: [{
name: '2012',
data: [
52, 75, 71, 66, 49, 29
]
},
{
name: '2017',
data: [
85, 97, 92, 92, 86, 71
]
}]
});