JSFiddle - React, Tailwind, and code Playground

by asiu

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 () {
        $('#container').highcharts({
            chart: {
                zoomType: 'xy'
            },
            title: {
                text: 'Department of Justice FOIA Requests, 2008-2013'
            },
            subtitle: {
                text: 'Source: justice.gov'
            },
            xAxis: [{
                categories: ['2008', '2009', '2010', '2011', '2012', '2013']
            }],
            yAxis: [{ // Primary yAxis
                labels: {
                    format: '{value}',
                    style: {
                        color: '#89A54E'
                    }
                },
                title: {
                    text: 'Requests Received',
                    style: {
                        color: '#89A54E'
                    }
                }
            }, { // Secondary yAxis
                title: {
                    text: 'Requests Processed',
                    style: {
                        color: '#4572A7'
                    }
                },
                labels: {
                    format: '{value}',
                    style: {
                        color: '#4572A7'
                    }
                },
                opposite: true
            }],
            tooltip: {
                shared: true
            },
            legend: {
                layout: 'vertical',
                align: 'left',
                x: 120,
                verticalAlign: 'top',
                y: 100,
                floating: true,
                backgroundColor: '#FFFFFF'
            },
            series: [{
                name: 'Processed',
                color: '#4572A7',
                type: 'column',
                yAxis: 1,
                data: [61272, 60217, 63368, 63992, 68531, 68241],
                tooltip: {
                    valueSuffix: ' requests'
                }
    
            }, {
                name: 'Received',
                color: '#89A54E',
    ...