JSFiddle - React, Tailwind, and code Playground
by Danielle Parkinson
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: 985px; height: 420px; margin: 0 auto"></div>
JavaScript
Highcharts.chart('container', {
chart: {
type: 'areaspline',
backgroundColor: '#FCFCFC'
},
title: {
text: ''
},
xAxis: {
labels: {
style: {
color: '#34495E',
fontSize: '15px'
}
},
categories: [
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sep',
'Oct',
'Nov',
'Dec'
],
},
yAxis: {
title: {
text: ''
},
max: 100,
labels: {
style: {
color: '#34495E',
fontSize: '15px'
}
},
},
tooltip: {
shared: false,
valueSuffix: ' units'
},
credits: {
enabled: false
},
plotOptions: {
areaspline: {
fillOpacity: 0.5
}
},
series: [{
name: 'Global Average Satisfaction Score',
data: [15, 20, 15, 25, 24, 45, 52, 66, 68, 64, 74, 53],
color: '#1E7889'
}, {
name: 'UK Average Satisfaction Score',
data: [5, 8, 10, 8, 16, 28, 26, 24, 34, 35, 28, 37],
color: '#00A0D6'
}]
});