Javascript examples for highcharts:Donut Chart
3 layer donut chart
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript"> window.onload=function(){/* ww w. ja v a2 s .c om*/ $(function () { var data = [ { name: 'A', id: 'father' }, { name: 'L', id: 'child-1', parent: 'father', value: 1 }, { name: 'B', id: 'child-2', parent: 'father', value: 3 }, { name: 'B', parent: 'child-1', value: 1 }, { name: 'Q', parent: 'child-2', value: 1 }, { name: 'S', parent: 'child-2', value: 1 }, { name: 'A', parent: 'child-2', value: 1 } ]; $('#container').highcharts({ chart: { type: 'sunburst' }, title: { text: 'Family tree' }, series: [{ data: data }] }); }); } </script> </head> <body> <script src="https://code.jquery.com/jquery-1.9.0.min.js"></script> <script src="https://code.highcharts.com/highcharts.src.js"></script> <script src="https://code.highcharts.com/highcharts-more.src.js"></script> <script src="https://code.highcharts.com/modules/sunburst.js"></script> <div id="container" style="height: 600px; max-width: 1000px"></div> </body> </html>