JSFiddle - React, Tailwind, and code Playground

by considerphlebas

HTML

<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

JavaScript

$(function () {
       Highcharts.setOptions({
        colors: ['#1c959e', '#9a4abf']
    });
    $('#container').highcharts({
        chart: {
            zoomType: 'xy'
        },
        title: {
            text: 'R squared vs. equal distribution of digits of <span style="font-size:21px; color:#9a4abf; font-weight:bold;">pi</span> and <span style="font-size:21px; color:#1c959e; font-weight:bold;">tau</span> to 1,000 decimals'
        },
        subtitle: {
            text: document.ontouchstart === undefined ?
                'Click and drag in the plot area to zoom in' :
                'Pinch the chart to zoom in'
        },

           
        xAxis: {
            title: {
                enabled: true,
                text: 'Position after decimal point'
            },

            showLastLabel: true
        },
        yAxis: {
            title: {
                text: 'R squared of digit distribution vs. uniform distribution'
            }
        },
        legend: {
            enabled: false
        },
        tooltip: {
            shared: true,
            crosshairs: true
        },
        plotOptions: {
            area: {
                fillColor: {
                    linearGradient: {
                        x1: 0,
                        y1: 0,
                        x2: 0,
                        y2: 1
                    },
                    stops: [
                        [0, Highcharts.getOptions().colors[0]],
                        [1, Highcharts.Color(Highcharts.getOptions().colors[0]).setOpacity(0).get('rgba')]
                    ]
                },
                marker: {
                    radius: 2
                },
                lineWidth: 1,
                states: {
                    hover: {
                        lineWidth: 1
                    }
                },
                threshold: null
            }
        },

        series: [{
            type: 'line',
            name: 'tau R squared',
     ...