Machine-readable page content
Canonical: https://semiotic.nteract.io/playground/donut-chart
Donut Chart Playground
Experiment with DonutChart props in real time. Donut charts are ideal for showing proportional breakdowns at a glance. Adjust the inner radius to control the hole size, tweak the start angle for orientation, and use slice padding to separate segments. Copy the generated code when you have the look you want.
Data safe · 1 numeric field checkedData Truth Lens
The current data satisfies this chart’s declared numeric contract:
value: amount · non-negative · values required
Generated Code
The link restores this exact configuration; the config is a portable ChartConfig artifact.
JSX
import { DonutChart } from "semiotic" const data = [ { category: "Housing", amount: 1850 }, { category: "Food & Dining", amount: 720 }, { category: "Transportation", amount: 480 }, { category: "Healthcare", amount: 350 }, { category: "Entertainment", amount: 280 }, { category: "Savings", amount: 620 }, ] <DonutChart data={data} />