JSFiddle - React, Tailwind, and code Playground

by Michel Penke

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

CSS

body {
  background-color: #fff;
}

#container {
  margin-top: 20px !important;
  
}

JavaScript

$(function () {
    $('#container').highcharts({
				chart: {
            type: 'column', 
            style: {fontFamily: 'Trebuchet MS'},
        				},
        title: {
            text: 'Gender Pay Gap', 
            style: {
            	color: '#9dcc58', 
              fontWeight: 'bold', 
              'font-size': '2em',}
        				},
        subtitle: {
            text: 'so viel verdienen Frauen weniger als Männer', 
            style: {
            	color: '#8da073', 
              fontWeight: 'bold'}
        					},
        xAxis: {
            categories: [
               'China', 'Großbritannien', 'Südkorea', 'Argentinien', 'Indien', 'Japan', 'Russland', 'Kanada', 'Brasilien', 'USA', 'Indonesien', 'Südafrika', 'Saudi-Arabien', 'Deutschland', 'Australien', 'Mexiko', 'EU', 'Frankreich', 'Italien', 'Türkei'],
            crosshair: true
        				},
        yAxis: {
            min: -45,
            title: {
                text: 'in Prozent'
            				}
        				},
        plotOptions: {
            'Gender Pay Gap': {
                colorByPoint: true, 
                color: '#474747',
            }
        }, 
        credits: {
            enabled: false
        					},
        legend: {
            enabled: false
        					},
        tooltip: {
            headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
            pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
                '<td style="padding:0"><b>{point.y:.1f} %</b></td></tr>',
            footerFormat: '</table>',
            shared: true,
            useHTML: true
        },
        plotOptions: {
            column: {
                pointPadding: 0.2,
                borderWidth: 0
            }
        },
        series: [{
            name: 'Gender Pay Gap',
            data: [{y: -41, color: '#9dcc58'}, {y: -36, color: '#9dcc58'}, {y: -36, color: '#9dcc58'}, {y: -33, color: '#9dcc58'}, {y: -33, color:...