JSFiddle - React, Tailwind, and code Playground

by cstigler

HTML

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

<div id="container" style="width: 536px; height: 302px; margin: 0 auto"></div>

JavaScript

$(function () {
    var chart;
    $(document).ready(function() {
        chart = new Highcharts.Chart({
            chart: {
                renderTo: 'container',
                type: 'column'
            },
            credits: {
                enabled: false
            },
            exporting: {
                enabled: false
            },
            legend: {
                enabled: false
            },
            title: {
                text: 'Discussion Comments By Time'
            },
            subtitle: {
                text: 'Click to filter'
            },
            xAxis: {
                lineWidth: 0,
                minorGridLineWidth: 0,
                tickLength: 0,
                minorTickLength: 0,
                lineColor: 'transparent',
                labels: {
                    enabled: false
                }
            },
            yAxis: {
                lineWidth: 0,
                minorGridLineWidth: 0,
                tickLength: 0,
                minorTickLength: 0,
                lineColor: 'transparent',
                labels: {
                    enabled: false
                },
                title: {
                    text: null
                }
            },
            tooltip: {
                formatter: function() {
                    return this.x + ' comments';
                }
            },
            plotOptions: {
                column: {
                    pointPadding: 0.2,
                    borderWidth: 0,
                    animation: false
                }
            },
            series: [{
                data: [10, 33, 5, 1, 22, 15, 3, 9]
            }]
        });
    });
    
});