JSFiddle - React, Tailwind, and code Playground

HTML

<script type="text/javascript" src="http://code.highcharts.com/highcharts.js"></script>

<script type="text/javascript" src="http://www.highcharts.com/samples/data/usdeur.js"></script>
<script type="text/javascript" src="http://www.highcharts.com/samples/data/three-series-1000-points.js"></script>

<button id="remove">Remove series</button>
<button id="add">Add series</button>
<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'
        },
        
        xAxis: {
            maxZoom: 14 * 24 * 3600000 // fourteen days
        },
        yAxis: {
            title: {
                text: 'Exchange rate'
            }
        },
        
        navigator: {
            series: {
                id: 'navigator'
            }
        },
        
        series: [{
            name: 'USD to EUR',
            data: usdeur
        }]
    }, function(chart){
        $('#remove').click(function(){
            var s = chart.series,
                l = s.length;
            
            while( --l >= 0 ) {
                if (s[l].name !== 'Navigator')
                    s[l].remove();
            }
            
            chart.get('navigator').setData([null])
        });
        
        $('#add').click(function(){
            chart.get('navigator').setData(ADBE)
            chart.addSeries({name: 'ADBE', data: ADBE})
        });
    });
});