Recent

author(s): Kondal

by Kondal Durgam

HTML

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

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

JavaScript

Highcharts.chart('container', {
    chart: {
         renderTo: 'sectionstwo',
				    type: 'pie'
    },
    credits: {
						enabled: false
					},
					exporting: {
						enabled: false
					},
    title: {
        text: 'Tatal<br>80/100',
        align: 'center',
        verticalAlign: 'middle',
        y: 50
    },
    tooltip: {
        pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
    },
    /* plotOptions: {
        pie: {
            dataLabels: {
                enabled: true,
                distance: -50,
                style: {
                    fontWeight: 'bold',
                    color: 'white'
                }
            },
            startAngle: -90,
            endAngle: 360,
            center: ['50%', '75%']
        }
    }, */
    colors: ['#19326b', '#aae3ff'],
				  plotOptions: {
				        series: {
				            states: {
				                hover: {
				                    enabled: false
				                }
				            }
				        }
				    },
  tooltip: { enabled: false },

    series: [{
      showInLegend: false,
        type: 'pie',
        name: 'Browser share',
        size: '100%',
      	innerSize: '70%',
        data: [
            ['Firefox',   10.38],
            ['Opera',     0.91],
            
        ]
    }]
});