JSFiddle - React, Tailwind, and code Playground

by JoeKuan

HTML

<script type="text/javascript" src="http://code.highcharts.com/highcharts.js"></script>
	<body>
    <div id="container"></div>
	</body>

JavaScript

$(function () {
    $(document).ready(function() {
        document.title = "Highcharts " + Highcharts.version;
        var chart = new Highcharts.Chart({
            chart: {
                renderTo: 'container',
                spacingBottom: 30,
                backgroundColor: '#EAEAEA'
            },
            title: {
                text: 'Population ages out of total (%) - Japan ',
                margin: 40,
                align: 'right',
                x: -40,
                style: {
                   fontFamily: 'palatino'
                }
            },
            credits: { 
               position: {
                  align: 'left',
                  x: 20
               },
               text: 'Data from The World Bank'
            },
            yAxis: {
                title: {
                    text: '(%)',
                    rotation: 0,
                    x: 10,
                    y: 5,
                    align: 'high'
                },
                opposite: true,
                gridLineWidth: 0,
                lineWidth: 1,
                maxPadding: 0.09
            },
            xAxis: {
                labels: {
                    // To avoid calling Highcharts.numberFormat
                    formatter: function() {
                        return this.value;
                    }
                },
                lineColor: '#CC2929',
                lineWidth: 4,
                tickWidth: 0,
                maxPadding: 0.02,
                offset: 2,
                allowDecimals: false
            },
            plotOptions: {
                areaspline: {
                  marker: {
                     enabled: false
                  }
                },
                scatter: {
                  marker: {
                     symbol: 'circle',
                     lineColor: '#E65C00',
                     lineWidth: 1
                  },
                  dataLabels: {
                     enabled:...