JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>

<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

JavaScript

$(function () {
    $('#container').highcharts({
        chart: {
            type: 'column'
        },
        title: {
            text: 'Stacked column chart'
        },
        xAxis: {
            categories: ['Windows', 'Mac OS']
        },
        yAxis: {
            min: 0,
            title: {
                text: 'Total fruit consumption'
            }
        },
        tooltip: {
            
            shared: true
        },
        plotOptions: {
            column: {
                stacking: 'percent'
            },
            series: {
              dataLabels: {
                enabled: true,
                'formatter': function() {
                  return this.series.name;
                }
              }
            }
            
        },
        series: [

          { name: 'Win 10', color: 'LIGHTCORAL', data: [2,null,null] },
          { name: 'Win 7', color: 'RED', data: [2,null,null] },
          { name: 'Win XP', color: 'DARKRED', data: [2,null,null] },
                  
          
          { name: 'Mojave', color: 'LIME', data: [null,1,null] },
          { name: 'Leopard', color: 'SPRINGGREEN', data: [null,2,null] },
          { name: 'Sierra', color: 'DARKGREEN', data: [null,3,null] },
       
        ],
        
    });
});