JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 400px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
$('#container').highcharts({
chart: {
zoomType: 'xy'
},
title: {
text: 'Base, Uplift, Actual'
},
xAxis: [{
categories: ['2013-05-01', '2013-05-02', '2013-05-03', '2013-05-04', '2013-05-05', '2013-05-06',
'2013-05-07','2013-05-08','2013-05-09','2013-05-10','2013-05-11','2013-05-12']
}],
yAxis: [{ // Primary yAxis
title: {
text: 'Cases',
}
}],
tooltip: {
shared: true
},
legend: {
layout: 'vertical',
align: 'left',
x: 120,
verticalAlign: 'top',
y: 100,
floating: true,
backgroundColor: '#FFFFFF'
},
plotOptions: {
series: {
marker: {
enabled: false
}
}
},
series: [
{name: 'mydates',
color:'red',
fillOpacity: 0.3,
data: [0, 0, 0,1,1,1,1, 1, 1,1,0,0],
type:'area',
stacking: 'percent'
},
{
name: 'Uplift',
color: 'rgb(184,204,228)',
type: 'areaspline',
stacking: 'normal',
data: [25, 20, 20,50,75,40,25, 20, 20,50,40,40],
},
{
name: 'Baseline',
color: 'rgb(0,112,192)',
type: 'areaspline',
stacking: 'normal',
fillOpacity: 0.3,
data: [100,100,105,75,140,120,100,80,105,75,140,120],
},
{
name: 'Actual',
color: 'rgb(146,208,80)',
...