JSFiddle - React, Tailwind, and code Playground
by Kondal Durgam
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-3d.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="height: 400px"></div>
JavaScript
Highcharts.chart('container', {
chart: {
type: 'column',
options3d: {
enabled: true,
alpha: 15,
beta: 10,
viewDistance: 15,
depth: 40
}
},
credits: {
enabled: false
},
exporting: {
enabled: false
},
title: {
text: 'Sourcing'
},
xAxis: {
categories: ['male', 'female']
},
yAxis: {
allowDecimals: false,
min: 0,
title: {
text: ''
}
},
plotOptions: {
column: {
stacking: 'normal',
depth: 40
}
},
series: [{
name: 'Plan',
data: [5, 3],
stack: 'male'
}, {
name: 'Actual',
data: [3, 5],
stack: 'female'
}]
});