JSFiddle - React, Tailwind, and code Playground

by vandigroup

HTML

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

<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

JavaScript

$(function () {
        $('#container').highcharts({
            chart: {
                type: 'column'
            },
            title: {
                text: 'The effects of a <strong>1 second</strong> delay'
            },
            xAxis: {
                categories: ['Conversion', 'Bounce Rate', 'Page Views', 'Return Visits', 'Customer Satisfaction']
            },
            yAxis: {
                title: {
                    text: 'Percentage Change'
                },
                labels: {
                    formatter: function() {
                        return this.value / 1 +'%';
                    }
                }
            },
            tooltip: {
                pointFormat: '{series.name} increased <b>{point.y:,.0f}%</b><br> at {point.x} seconds'
            },
            credits: {
                enabled: false
            },
            series: [{
                name: '1 Second',
                data: [-7, -8, -11, -9, -16]
            }]
        });
    });