Zingchart | Half donut chart

54 views Asked by At

Any ideas for hiding the unused half in the 180º pie charts? As you can see in the image I attached, it still uses the same height as a 360° pizza chart.

enter image description here

I have been using these configs:

type: "pie", 
scaleR: {
   aperture: 180,
},
plot: {
   refAngle: 180,
   slice: "40%"
}
1

There are 1 answers

0
lasabahebwa On

you can play around with offsetY on plot and sizing the pie via sizeFactor to hide the unused half in the 180º pie charts. Please use this demo for reference.

NB: This is not flexible if the container dimension changes. enter image description here