Javascript examples for highcharts:Donut Chart
Create nested donut charts
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-3.1.1.js"></script> <script type="text/javascript"> $(function () {// w w w . j a va2 s. com Highcharts.chart('container', { chart: { plotBackgroundColor: null, plotBorderWidth: 0, plotShadow: false }, title: { text: 'Browser<br>shares<br>2015', align: 'center', verticalAlign: 'middle', y: 40 }, tooltip: { pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>' }, plotOptions: { pie: { dataLabels: { enabled: true, distance: -50, style: { fontWeight: 'bold', color: 'white' } }, startAngle: 0, endAngle: 360, center: ['50%', '75%'] } }, series: [{ type: 'pie', name: 'Election', size: '100%', innerSize: '40%', data: [{name: "A", y: 20}, {name: "B", y: 10}, {name: "C", y: 15} ] }, { type: 'pie', name: 'Proprietary or Undetectable', innerSize: '70%', data: [{name: "A", y: 10}, {name: "B", y: 15}, {name: "C", y: 20} ] }] }); }); </script> </head> <body> <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> </body> </html>