JSFiddle - React, Tailwind, and code Playground

by tuancongtuyn

HTML

<script src="https://rawgithub.com/highslide-software/highcharts.com/master/js/adapters/standalone-framework.src.js"></script>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<script src="http://code.highcharts.com/modules/drilldown.js"></script>
<p>Customizing the hamburger export options.</p>
<div id="containerTokyo" style="min-width: 300px; height: 300px; margin: 1em"></div>
<div id="containerNewYork" style="min-width: 300px; height: 300px; margin: 1em"></div>

JavaScript

HelloWorld = function () {
    alert("Hello World");
};

var buttons = Highcharts.getOptions().exporting.buttons.contextButton.menuItems;

var chartTokyo = new Highcharts.Chart({
    chart: {
        renderTo: 'containerTokyo'
    },
    title: {
        text: 'Average Temperature',
        x: -20 //center
    },
    xAxis: {
        categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
            'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
    },
    exporting: {
        buttons: {
            contextButton: {
                
            }
        }
    },
    series: [{
        name: 'Tokyo',
        data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
    }]
});