JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://raw.github.com/highslide-software/highcharts.com/master/js/highcharts.src.js"></script>
<div id="chart"></div>
CSS
#chart {
width: 800px;
height: 600px;
}
JavaScript
chartOptions = {
chart: {
type: 'column'
},
title: {
text: ''
},
xAxis: {
categories: ["14.08","15.08","16.08","17.08","18.08","19.08","20.08","21.08","22.08","23.08","24.08","25.08","26.08","27.08","28.08"]
},
yAxis: {
min: 0,
title: {
text: ''
},
endOnTick: false,
maxPadding: 0.0,
stackLabels: {
enabled: true,
style: {
fontWeight: 'bold',
color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray'
}
},
allowDecimals: false
},
legend: {
align: 'right',
// x: -70,
x: 0,
verticalAlign: 'top',
y: 0,
floating: true,
backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColorSolid) || 'white',
borderColor: '#CCC',
borderWidth: 1,
shadow: false
// layout: vertical
},
tooltip: {
formatter: function () {
return '<b>' + this.x + '</b><br/>' +
this.series.name + ': ' + this.y + '<br/>' +
'Gesamt: ' + this.point.stackTotal;
}
},
plotOptions: {
column: {
stacking: 'normal',
dataLabels: {
enabled: true,
color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white'
},
treshold: 1
}
},
series:...