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,
            buttons: [{
                type: 'day',
                count: 1,
                text: '1d'
            }, {
                type: 'month',
                count: 1,
                text: '1m'
            }, {
                type: 'month',
                count: 3,
                text: '3m'
            }, {
                type: 'month',
                count: 6,
                text: '6m'
            }, {
                type: 'ytd',
                text: 'YTD'
            }, {
                type: 'year',
                count: 1,
                text: '1y'
            }, {
                type: 'all',
                text: 'All'
            }]
        },
        
        title: {
            text: 'USD to EUR exchange rate'
        },
        
        xAxis: {
            maxZoom: 24 * 3600000 // fourteen days
        },
        
        series: [{
            name: 'USD to EUR',
            data: usdeur
        }]
    });
});