JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://code.highcharts.com/stock/highstock.js"></script>
<script src="http://code.highcharts.com/stock/modules/exporting.js"></script>
<div id="container" style="height: 500px; min-width: 500px"></div>
<button id="btn">Update navigator serie</button>

JavaScript

$(function () {

    // Create the chart
    $('#container').highcharts('StockChart', {


        rangeSelector: {
            selected: 1
        },

        title: {
            text: 'AAPL Stock Price'
        },

        series: [{
            name: 'AAPL',
            data: [4,6,2,1,2,3,4]
        }]
    }, function (chart) {

        $('#btn').click(function(){
        
            chart.series[0].setData([5,5,5,5,5,5,50]);
        
        });

    });

});