Donut chart (Vega-Lite)
A donut is an arc mark with innerRadius set. The hole exists so you can put the total in it, which is usually the number people want.
#What this example shows
theta, the angular encoding.
innerRadius on the mark, which makes it a donut.
A deliberate colour ordering.
#A worked example
Open it, edit it, or copy the source below.
The source, which you can paste into a new diagram and edit:
#Making it your own
Set innerRadius to 0 and it is a pie chart.
padAngle adds a small gap between slices, which reads better.
Three or four slices at most, as with any pie.
#Related
A real chart in about ten lines.
