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: 310px; max-width: 800px; height: 400px; margin: 0 auto"></div>

JavaScript

$(function () {
    $('#container').highcharts({
        chart: {
            type: 'bar'
        },
        title: {
            text: 'Stacked bar chart'
        },
        xAxis: {
            categories: ['A', 'B', 'C']
        },
        yAxis: {
            min: 0,
            title: {
                text: 'Total fruit consumption'
            }
        },
        legend: {
 align: 'right',
 x: -70,
 verticalAlign: 'top',
 y: 20,
 floating: true,
 backgroundColor: (Highcharts.theme && Highcharts.theme.background2) || 'white',
 borderColor: '#CCC',
 borderWidth: 1,
 shadow: false
},
        plotOptions: {
            series: {
                stacking: 'normal'
            }
        },
        series: [{
        name: 'A',
        data: [5]
    }, {
        name: 'B',
        data: [2]
    }, {
        name: 'C',
        data: [3]
    }]
    });
});