top of page

Convert pie chart to semi-circle donut

A pie chart can be converted to semi circle donut using below script.




widget.on('processresult', function(se, ev){
	ev.result.plotOptions.pie.startAngle= -90,
   	ev.result.plotOptions.pie.endAngle= 90,
   	ev.result.plotOptions.pie.center= ['50%', '75%'],
   	ev.result.plotOptions.pie.size= '110%'
	ev.result.plotOptions.pie.innerSize= '50%'
})

Steps:

  • Create a pie chart

  • Add above script to widget and save

  • Refresh the widget

203 views0 comments

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page