pie-chart
A pie or donut chart on a UI stage: one slice per `datum` of its `data`, sized by its share of the total, with a legend of labels and percentages on the right.
pie-chart(donut=true h=1 margin=…)
Attributes
donuttrue / falseA hole in the middle (default `true`; `false` draws a full pie).3×hnumberChart height in stage units (default 220).3×marginfour numbers3×subtitletextSmall text under the `title`.3×titlenumber + unitBold text in the donut's hole.3×wnumberChart width with its 160-unit legend, in stage units (default 420).3×