JSFiddle - React, Tailwind, and code Playground

by Purva Kshatriya

HTML

<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/highcharts-3d.js"></script>

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

JavaScript

$(function () {
    $('#container').highcharts({
        chart: {   
            backgroundColor: '#FCFFC5',
            borderWidth: 4,
            borderRadius:0,
            
            plotBorderWidth: 1,//null,
            plotBorderColor: '#346691',
            plotShadow: true,            
            plotBackgroundColor: '#00c060'
        },
        title: {
            text: 'Browser market shares at a specific website, 2014',
            align:'left'
        },
        tooltip: {
            pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
        },
        plotOptions: {
            series: {
                animation: {
                    duration: 000,
                    easing:'linear'
                }
            },
            pie: {               
                allowPointSelect: true,
                cursor: 'pointer',
                showInLegend: true,
                dataLabels: {
                    enabled: true,              
                    format: '<i>{point.name}</i>: {point.percentage:.1f} %',
                    style: {
                        color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
                    }
                }
            }
        },
        series: [
            {
            type: 'pie',
            name: 'Browser share',
            data: [
                ['Firefox',   45.0],
                ['IE',       26.8],
                {
                    name: 'Chrome',
                    y: 12.8,
                    sliced: true,
                    selected: true
                },
                ['Safari',    8.5],
                ['Opera',     6.2],
                ['Others',   0.7]
            ]
        },
       {
            type: 'line',
            data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
            name: 'Temperature'
        }
       
        ]
    });
});