JSFiddle - React, Tailwind, and code Playground

by fekkyDev s

CSS

.highcharts-figure, .highcharts-data-table table {
    min-width: 310px; 
    max-width: 800px;
    margin: 1em auto;
}

#container {
   height:20px;
  
    
}

.highcharts-data-table table {
	font-family: Verdana, sans-serif;
	border-collapse: collapse;
	border: 1px solid #EBEBEB;
	margin: 10px auto;
	text-align: center;
	width: 100%;
	max-width: 500px;
}
.highcharts-data-table caption {
    padding: 1em 0;
    font-size: 1.2em;
    color: #555;
}
.highcharts-data-table th {
	font-weight: 600;
    padding: 0.5em;
}
.highcharts-data-table td, .highcharts-data-table th, .highcharts-data-table caption {
    padding: 0.5em;
}
.highcharts-data-table thead tr, .highcharts-data-table tr:nth-child(even) {
    background: #f8f8f8;
}
.highcharts-data-table tr:hover {
    background: #f1f7ff;
}

JavaScript

Highcharts.chart('container', {
    chart: {
        type: 'bar',
        height:20,
       plotBorderWidth: null,
                plotShadow: false,
                margin: [0,0,0,0],
                spacingTop: 0,
                 borderColor: '#EBBA95',
        borderRadius: 15,
        borderWidth: 2,
                spacingBottom: 0,
                spacingLeft: 0,
                spacingRight: 0,
        backgroundColor:null
    },
    exporting: { enabled: false },
    credits:{
     enabled:false
    },
    title: {
        text: ''
    },
    xAxis: {
    			visible:false,
        categories: ['Apples']
    },
    yAxis: {
        min: 0,
        visible:false,
        title: {
            text: ''
        }
    },
    legend: {
        reversed: true,
        enabled:false
    },
    
    plotOptions: {
        series: {
        pointPadding: 0,
            groupPadding: 0,
            borderWidth: 0,
            stacking: 'percent'
        }
    },
    series: [{
        name: 'John',
        data: [5]
    }, {
        name: 'Jane',
        data: [2]
    }, {
        name: 'Joe',
        data: [3]
    }]
});