Donut chart
native
Pie with an inner radius
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.type=donut.
Source: chartkit:packages/core/src/generated/schema.ts:24
ChartKit spec
Passed validate() during npm run matrix:refresh. The SVG is the server render.
{
"version": "1",
"type": "donut",
"data": [
{
"x": "Oak",
"y": 8
},
{
"x": "Pine",
"y": 5
}
],
"encoding": {
"x": "x",
"y": "y"
},
"a11y": {
"alt": "Oak is larger."
},
"size": {
"width": 640,
"height": 260
}
}Other libraries
Option names are the paths recorded in the matrix. A grep-only cell names the identifier that matched, not a render test. Markdown copy: type.donut.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | ChartTypeRegistry.doughnut | types · strong | chart.js/dist/types/index.d.ts:3747 |
| Recharts | native | Pie.innerRadius | types · strong | recharts/types/polar/Pie.d.ts:43 |
| Apache ECharts | native | series.radius[inner, outer] | types · strong | echarts/types/dist/shared.d.ts:7620 |
| Highcharts | native | plotOptions.pie.innerSize | types · strong | highcharts/options/pie.d.ts:521 |
| Plotly.js | native | trace.hole | types · strong | plot-schema.json#traces.{pie}.attributes.hole |
| Nivo | native | Pie.innerRadius | types · strong | @nivo/pie/dist/types/types.d.ts:57 |
| Victory | native | VictoryPie.innerRadius | types · strong | victory-pie/lib/victory-pie.d.ts:9 |
| visx | native | Pie.innerRadius | types · strong | @visx/shape/lib/types/D3ShapeConfig.d.ts:7 |
| ApexCharts | native | chart.type=donut | types · strong | apexcharts/types/apexcharts.d.ts:1767 |
| Tremor (npm) | native | DonutChart | types · strong | @tremor/react/dist/index.d.ts:124 |
| Observable Plot | manual | grep: render | mechanism · weak | @observablehq/plot/src/scales.d.ts:166 |
| Vega-Lite | native | grep: innerRadius | grep · weak | 492: "innerRadius" |
| AG Charts | native | series.type=donut | types · strong | ag-charts-types/dist/types/src/series/cartesian/areaOptions.d.ts:86 |
| amCharts 5 | native | PieChart.innerRadius | types · strong | @amcharts/amcharts5/.internal/charts/pie/PieChart.d.ts:77 |
| Google Charts | native | PieChartOptions.pieHole | types · strong | @types/google.visualization/index.d.ts:1061 |
| uPlot | none | — | absence · absence | — |
| TradingView Lightweight Charts | none | — | absence · absence | — |
| MUI X Charts | native | PieChart.series.innerRadius | types · strong | @mui/x-charts/models/seriesType/pie.d.mts:38 |
| Mermaid (chart-ish diagrams only) | unknown | grep: innerRadius | conflict · unknown | — |
| AntV G2 | native | grep: innerRadius | grep · weak | @antv/g2/lib/coordinate/theta.d.ts:8 |