JSFiddle - React, Tailwind, and code Playground

by JoeKuan

HTML

<script type="text/javascript" src="http://code.highcharts.com/highcharts.js"></script>
    <script type="text/javascript" src="http://code.highcharts.com/highcharts-3d.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',
                type: 'column',
                borderWidth: 1,
                options3d: {
                    alpha: 0,
                    beta: 0,
                    enabled: true
                }
            },
            title: {
                text: 'Number of Patents Granted in 2011'
            },
            credits: { 
               position: {
                  align: 'left',
                  x: 20
               },
               href: 'http://www.uspto.gov',
               text: 'Source: U.S. Patent & Trademark Office'
            },
            xAxis: {
                categories: [ 'United States', 'Japan', 'South Korea', 'Germany', 'Taiwan', 
                              'Canada', 'France', 'United Kingdom', 'China', 'Italy' ],
                labels: {
                    rotation: -45,
                    align: 'right'
                }
            },
            tooltip: {
                enabled: false
            },
            yAxis: {
                title: {
                    text: 'No. of Patents'
                },
                type: 'logarithmic'
            },
            plotOptions: {
                column: {
                    colorByPoint: true,
                    dataLabels: {
                        enabled: true,
                        rotation: -90,
                        color: '#333333',
                        formatter: function() {
                            return Highcharts.numberFormat(this.y, 0);
                        },
                        x: 5,
                        y: -25,
                        style: {
                            fontWeight: 'bold'
                        }
                    }
                }
            },
            series: [{
               ...