Donut Chart
Type: donut-chart
Donut chart driven by DuckDB SQL query.
Supports children: No
A donut chart powered by DuckDB SQL. Query must return label and value columns.
Example
{
"type": "donut-chart",
"props": {
"sql": "SELECT room_type AS label, COUNT(*) AS value FROM {{listings}} GROUP BY 1",
"title": "Listings by Room Type"
}
}
Every widget is defined as { "type": "donut-chart", "props": { ... } }. The properties below describe the props object.
Props
Loading ....
Raw schema
Download the full schema file: /widget-schema/donut-chart.json