JSFiddle - React, Tailwind, and code Playground

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: 400px; height: 400px; margin: 0 auto"></div>

JavaScript

$(function () {
    $(document).ready(function() {

        Highcharts.setOptions({

            global: {

                useUTC: false

            }

        });

    

        var chart;

        chart = new Highcharts.Chart({

            chart: {

                renderTo: 'container',

                type: 'column',

                marginRight: 10,

                events: {

                    load: function() {

    

                        // set up the updating of the chart each second

                        var series = this.series[0].data[0];

                        setInterval(function() {

                            var y = Math.random();

                            series.data[0].updatePoint([y], true);

                        }, 1000);

                    }

                }

            },

            title: {

                text: 'Live random data'

            },

            xAxis: {

                type: 'datetime',

                tickPixelInterval: 150

            },

            yAxis: {

                title: {

                    text: 'Value'

                },

                plotLines: [{

                    value: 0,

                    width: 1,

                    color: '#808080'

                }]

            },

            tooltip: {

                formatter: function() {

                        return '<b>'+ this.series.name +'</b><br/>'+

                        Highcharts.dateFormat('%Y-%m-%d %H:%M:%S', this.x) +'<br/>'+

                        Highcharts.numberFormat(this.y, 2);

                }

            },

            legend: {

                enabled: false

            },

            exporting: {

                enabled: false

            },

            series: [{

                name: 'Random data',

                data: [0]

            }]

        });

    });

    
});