Features · type

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.

Oak is larger.Oak is larger.Oak: 8 (61.5%)Pine: 5 (38.5%)13TotalOak61.5%Pine38.5%
{
  "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.

LibraryStatusOptionVerificationSource
Chart.jsnativeChartTypeRegistry.doughnuttypes · strongchart.js/dist/types/index.d.ts:3747
RechartsnativePie.innerRadiustypes · strongrecharts/types/polar/Pie.d.ts:43
Apache EChartsnativeseries.radius[inner, outer]types · strongecharts/types/dist/shared.d.ts:7620
HighchartsnativeplotOptions.pie.innerSizetypes · stronghighcharts/options/pie.d.ts:521
Plotly.jsnativetrace.holetypes · strongplot-schema.json#traces.{pie}.attributes.hole
NivonativePie.innerRadiustypes · strong@nivo/pie/dist/types/types.d.ts:57
VictorynativeVictoryPie.innerRadiustypes · strongvictory-pie/lib/victory-pie.d.ts:9
visxnativePie.innerRadiustypes · strong@visx/shape/lib/types/D3ShapeConfig.d.ts:7
ApexChartsnativechart.type=donuttypes · strongapexcharts/types/apexcharts.d.ts:1767
Tremor (npm)nativeDonutCharttypes · strong@tremor/react/dist/index.d.ts:124
Observable Plotmanualgrep: rendermechanism · weak@observablehq/plot/src/scales.d.ts:166
Vega-Litenativegrep: innerRadiusgrep · weak492: "innerRadius"
AG Chartsnativeseries.type=donuttypes · strongag-charts-types/dist/types/src/series/cartesian/areaOptions.d.ts:86
amCharts 5nativePieChart.innerRadiustypes · strong@amcharts/amcharts5/.internal/charts/pie/PieChart.d.ts:77
Google ChartsnativePieChartOptions.pieHoletypes · strong@types/google.visualization/index.d.ts:1061
uPlotnone—absence · absence—
TradingView Lightweight Chartsnone—absence · absence—
MUI X ChartsnativePieChart.series.innerRadiustypes · strong@mui/x-charts/models/seriesType/pie.d.mts:38
Mermaid (chart-ish diagrams only)unknowngrep: innerRadiusconflict · unknown—
AntV G2nativegrep: innerRadiusgrep · weak@antv/g2/lib/coordinate/theta.d.ts:8