JSFiddle - React, Tailwind, and code Playground

by core972

HTML

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

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

JavaScript

$(function () {
    Highcharts.chart('container', {
        chart: {
            plotBackgroundColor: null,
            plotBorderWidth: 0,
            plotShadow: false
        },
        title: {
            text: 'Browser<br>shares<br>2015',
            align: 'center',
            verticalAlign: 'middle',
            y: 0
        },
        tooltip: {
            pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
        },
        plotOptions: {
            pie: {
                dataLabels: {
                    enabled: true,
                    distance: -10,
                    style: {
                        fontWeight: 'bold',
                        color: 'white'
                    }
                },
                startAngle: 0,
                endAngle: 360,
            }
        },
        series: [{
            type: 'pie',
            name: 'Election',
            size: '60%', // Change this parameter
            innerSize: '50%', // Change this parameter
            data: [{name: "A", y: 20},
            {name: "B", y: 10},
            {name: "C", y: 15}
            ]
        }, {
            type: 'pie',
            name: 'Proprietary or Undetectable',
            innerSize: '80%', // Change this parameter
            data: [{name: "A", y: 10},
            {name: "B", y: 15},
            {name: "C", y: 20}
               
                
            ]
        }]
    });
});