Julio
Julio

Reputation: 1

Zingchart | Half donut chart

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%"
}

Upvotes: 0

Views: 63

Answers (1)

lasabahebwa
lasabahebwa

Reputation: 301

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

Upvotes: 0

Related Questions