JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/funnel.js"></script>
<div id="container" style="min-width: 410px; max-width: 600px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
Highcharts.chart('container', {
chart: {
type: 'pyramid',
},
title: {
text: '',
x: -50
},
colors:[ "#ccc", "#92af6d", "#de9b44" , "#178BCA"],
plotOptions: {
series: {
dataLabels: {
enabled: true,
format: '<b>{point.name}</b> ({point.y:,.0f}%)',
color: '#000',
style:{
width: '200px',
fontSize: '15px'
},
softConnector: true
}
}
},
tooltip:{
style: {
fontFamily: 'Roboto'
},
borderColor: '#777',
formatter: function() {
return this.point.name +": " + this.y +'%';
},
},
legend: {
enabled: false
},
exporting:{
enabled: false
},
credits:{
enabled: false
},
series: [{
name: 'Unique users',
data: [
['something01', 9.1],
['something02', 13],
['something03', 21.8],
['something04', 37.2],
],
width: '60%'
}]
});
});