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',
            },
            title: {
                text: 'Population ages 65 and over (% of total)',
            },
            credits: { 
               position: {
                  align: 'left',
                  x: 20
               },
               text: 'Data from The World Bank'
            },
            xAxis: {
                categories: [ '1980', '1981', '1982', '1983', '1984', '1985',
                              '1986', '1987', '1988', '1989', '1990', '1991',
                              '1992', '1993', '1994', '1995', '1996', '1997',
                              '1998', '1999', '2000', '2001', '2002', '2003',
                              '2004', '2005', '2006', '2007', '2008', '2009', '2010' ],
                labels: {
                    step: 5
                }
            },
            yAxis: {
                title: {
                    text: 'Percentage %',
                }
            },
            plotOptions: {
                line: {
     //               showInLegend: false,
    //                step: true
                }
            },
            series: [{
                name: 'Japan',
                lineWidth: 6,
                data: [ 9, 9, 9, 10, 10, 10, 10, 11, 11, 12, 12, 12, 13, 13, 14, 14,
                        15, 15, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 23 ] 
            }, {
                name: 'Singapore',
                data: [ 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 
                        8, 8, 8, 8, 9, 9, 9, 9, 9 ]
            }, {
                name: 'Norway',
                data: [ 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 
                        16, 16, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 14, 15, 15 ]
            },...