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/highcharts-3d.js"></script>
<div id="container" style="margin: 0 auto"></div>

JavaScript

$(function () {//0001
    // Radialize the colors
    Highcharts.getOptions().colors = Highcharts.map(Highcharts.getOptions().colors, function (color) {
        return {
           linearGradient: { x1:1, x2: 1, y1:1, y2:0},          
            stops: [
               [0, '#ffffff'],
               //[1, '#3366AA'],                
               [1,'rgba(215,44,44, 0.7)'] // darken
            ]
        };
    });
    $('#container').highcharts({
        chart:{
            type:'pie',
            options3d: {
                enabled: true,
                alpha: 45
            },
            height:350,
            width:500,
            //backgroundColor: '#FCFFC5',
            borderWidth: 4,
            borderRadius:2,            
            plotBorderWidth: 1,
            plotBorderColor: '#346691',
            plotShadow: true,            
           // plotBackgroundColor: '#47d1ae',
            plotBorderRadius:4   
        },        
        title: {
            text: 'Browser market shares at a specific website, 2014'            
        },
        legend:{
            enabled:true,
            layout:'horizontal',
            verticalAlign:'bottom',
            borderWidth:0,
            backgroundColor: '#bad8eb',
            borderWidth: 4,
            borderRadius:2             
        },
        tooltip: {          
            enabled:true,
            pointFormat: '{series.name}: <i>{point.y}</i>',
            borderWidth:1,
            borderRadius:2,
            backgroundColor:'#b6fcd5'
        },        
        plotOptions: {            
            pie: { 
                animation:false,
                showInLegend: true,
                depth: 22,
              //  center: ['50%', '75%'],
                dataLabels: {
                    enabled: true,
                    rotation:0,
                    connectorWidth:1,
                    format:'{point.name}: {point.y}',
                    softConnector:false,
                  ...