JSFiddle - React, Tailwind, and code Playground

HTML

<script type="text/javascript" src="http://www.highcharts.com/js/testing-stock-exporting.js"></script>
<script type="text/javascript" src="http://www.highcharts.com/samples/data/usdeur.js"></script>

<div id="container" style="height: 500px"></div>

JavaScript

jQuery(function() {
    // Create the chart    
    window.chart = new Highcharts.StockChart({
        chart: {
            renderTo: 'container'
        },
        
        rangeSelector: {
            selected: 1
        },
        
        title: {
            text: 'USD to EUR exchange rate'
        },
        
        tooltip: {
            formatter: function(){
                console.log(this);
                return this.point;
            }
        },
        
        xAxis: {
            maxZoom: 14 * 24 * 3600000, // fourteen days,
            labels: {
                formatter: function(){
                    console.log(this);
                    return this.value;
                }
            }
        },
        yAxis: {
            title: {
                text: 'Exchange rate'
            }
        },
        
        series: [{
            name: 'USD to EUR',
            data: usdeur
        }]
    });
});