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
Comments