JSFiddle - React, Tailwind, and code Playground

by Sunny SM

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>

<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

JavaScript

$(function () {
    $('#container').highcharts({
        title: {
            text: 'Monthly Average Temperature',
            x: -20 //center
        },
        subtitle: {
            text: 'Source: WorldClimate.com',
            x: -20
        },
        xAxis: {
            categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
                'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
        },
        yAxis: {
            title: {
                text: 'Temperature (°C)'
            },
            plotLines: [{
                value: 0,
                width: 1,
                color: '#808080'
            }]
        },
        tooltip: {
            valueSuffix: '°C'
        },
        credits: { enabled: false },
        exporting: { enabled: false },
        legend: {
            layout: 'vertical',
            align: 'right',
            verticalAlign: 'middle',
            borderWidth: 0
        },
        series: [{
            name: 'Qaura',
            data: [252, 600, 250, 140, 160, 230, 250, 250, 420, 180, 130, 190]
        }, {
            name: 'Facebook',
            data: [250,520,222,120,140,255,410,222,36,521,52,120]
        }, {
            name: 'Linkdin',
            data: [56,55,63,95,95,88,250,45,260,90,80,144]
        }, {
            name: 'Twitter',
            data: [120,520,63,250,290,410,50,60,85,74,50,220]
        }]
    });
});