JSFiddle - React, Tailwind, and code Playground

by Kris

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: 120px; margin: 0 auto"></div>

JavaScript

$(function () {
    var chart;
    
    $(document).ready(function () {
    	
    	// Build the chart
        $('#container').highcharts({
            chart: {
                plotBackgroundColor: null,
                plotBorderWidth: null,
                plotShadow: false
            },
            //colors:[],
            title: {
                text: '15%',
                style:{
                    fontSize:'10px',
                    color: '#0DC055'
                },
                align: 'center',
                verticalAlign: 'middle',
                y: 4
            },
            tooltip: {
        	    pointFormat: ''
            },
            legend:{
                enabled:false
            },
            plotOptions: {
                pie: {
                    allowPointSelect: true,
                    cursor: 'pointer',
                    dataLabels: {
                        enabled: false
                    },
                    showInLegend: true
                }
            },
            series: [{
                type: 'pie',
                name: 'Browser share',
                 innerSize: '99%',
                data: [
                    ['45',   45.0],
                    ['26.8',       26.8]

                ]
            }]
        });
    });
    
});