Bar Chart
Type: bar-chart
Bar chart driven by DuckDB SQL query.
Supports children: No
A bar chart powered by DuckDB SQL queries against UDF outputs. Query must return 'label' and 'value' columns. Uses {{udf_name}} placeholders to reference UDF DataFrames.
Example
{
"type": "bar-chart",
"props": {
"sql": "SELECT neighborhood AS label, COUNT(*) AS value FROM {{listings}} GROUP BY 1 ORDER BY 2 DESC LIMIT 10",
"title": "Listings by Neighborhood"
}
}
Example — horizontal
{
"type": "bar-chart",
"props": {
"sql": "SELECT city AS label, population AS value FROM {{cities}} ORDER BY 2 DESC",
"horizontal": true,
"showValues": true
}
}
Every widget is defined as { "type": "bar-chart", "props": { ... } }. The properties below describe the props object.
Props
Loading ....
Raw schema
Download the full schema file: /widget-schema/bar-chart.json