Computer >> Computer tutorials >  >> Programming >> Javascript

Example of HTML Highcharts donut chart without inner pie


Provide the data as an array of two-element arrays. Set the innerSize and get the donut style.

The parameters would have −

...
data: [["Audi",4],["Benz",6],["Jaguar",9]],
innerSize: '30%',
...

The code snippet to set size −

series: [{
   name: Cars,
   data: [["Audi",4],["Benz",6],["Jaquar",9]],
   size: '50%',
   innerSize: '30%',
   showInLegend:true,
   dataLabels: {
      enabled: false
   }
}]