JSFiddle - React, Tailwind, and code Playground

by anikettiwari

HTML

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

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

JavaScript

$(function () {
    $('#container').highcharts({

            chart: {
                renderTo: 'container',
                type: 'variablepie'
            },
            credits: {
           enabled: false
         },
            title: {
                text: ''
            },
              
            yAxis: {
                title: {
                    text: 'sss'
                }
            },
            plotOptions: {
                variablepie: {
                   // shadow: false,
                  dataLabels: {
                   enabled: true,
                   connectorShape: 'crookedLine',
                   crookDistance: '90%',
                   alignTo: 'plotEdges'
                  },
                  showInLegend: true,
                }
            },
            tooltip: {
                formatter: function() {
                    return '<b>'+ this.point.name +'</b>: '+ this.y +' %';
                }
            },
            legend: {
             enabled: true,
              x:-50,
              symbolHeight: '.001',
              symbolWidth: '.001',
              symbolRadius: '.001',
              useHTML: true,
              labelFormatter: function () {
                return '<span class=entity-party-chart>' + 'Plaintiff vs Defendant' + '</span>';
              }
            },
            
            colors: ['#0b92fb','#a3daf0'],
             series: [{ 
             //  minPointSize: -10, 
               innerSize: '70%',
               zMin: -10,
               data: [
               
               { name: 'MSIE',y: 60, z: 30 }, 
               { name: 'Firefox', y: 20, z: 18 },  
               ] 
               }]  
           /*  series: [{
            
                name: 'Browsers',
               data: [["Firefox",6],["MSIE",4]],
               size: '88%',
                innerSize: '70%',
              showInLegend:true,
                
                       }]  */
        })
    });