| discipline | Freelancers |
|---|---|
| design | 86 |
| development | 54 |
| writing | 37 |
| consulting | 21 |
<Chart.Donut />API
| Prop | Type | Default | |
|---|---|---|---|
dataKey | string | — | Field holding each wedge's size. Defaults to the first value key. |
endAngle | number | — | Where the last wedge ends. A partial sweep draws an arc rather than a circle. |
innerRadiusRatio | number | 0.6 | Fraction of the outer radius left hollow. 0 draws a full pie. |
inset | number | — | Pixels kept clear around the wedges, for the active one to lift into. |
nameKey | string | — | Field naming each wedge's config entry. Defaults to the category field. |
padAngle | number | — | Radians of blank between two wedges. |
startAngle | number | — | Where the first wedge begins, in radians clockwise from 12 o'clock. |
Plus the DOM props of the element it renders. Source: chart/components/chart-donut.tsx.
The same props as Chart.Pie — a donut is a pie with
innerRadiusRatio above zero. The hole is worth it for two reasons: a total can
sit in it, and comparing arc lengths is easier than comparing wedge areas.