Charts and dashboards from SQL with the anofox_visualization DuckDB extension — SQL to SVG (anofox_render and the column chart macros), interactive ::ROLE dashboards (KPIs, periods, tables, inputs, cross-filter and drill-down, annotations and forecast fans, process diagrams, motion, Explore data, dashboard --check lint and design rules), the anofox_plot_* contract macros for anofox-statistics, anofox-forecast and Python / R results (the anofox_viz package), locked read-only serving and deployment, and login with row / column access policies.
Anofox Visualization — charts & dashboards for DuckDB, from SQL
You write ordinary DuckDB SQL and tag result columns with ::ROLE casts. Each
annotated SELECT becomes a chart, a KPI, a table or an input, rendered to SVG
by ggplot-rs, a grammar-of-graphics
engine. There is no JavaScript charting library and no config file: the SQL is
the dashboard.
[!IMPORTANT]
Early development: expect bugs and breaking changes. Please report them on the
issues page.
SELECT week::XAXIS, channel::CATEGORY, sum(revenue)::BARCHART_STACKED, 'Revenue by channel'::TITLE
FROM sales GROUP BY ALL ORDER BY ALL;
Draw charts in SQL. 42 chart kinds (bars, lines, scatter, heatmaps, waterfalls, Sankey, Gantt, diagrams and factor graphs …) and maps (countries and regions built in, or your own geometry), as SVG from any query. Chart catalogue
Build dashboards from a .sql file. KPI tiles, tables, inputs (getvariable), tabs, cross-filtering, drill-down and share links. Building dashboards
Author in the browser. The builder edits and renders on DuckDB-Wasm or against your own database (anofox_serve). Authoring
Publish without a server. Static HTML, one SVG, or a whole static site (dashboard --site). Static site
Serve dashboards to others. A locked, read-only server with login (OIDC, JWT, proxy, API keys), row and column policies, scheduled reports and alerts. Locked server
Embed them in your own app (a web component, or signed embed links). Embedding
Plot results from the anofox extensions. statistics, forecast, tabular, optimize and decide: anofox_plot(t) picks the plot. From Python and R too. Integrations
Check dashboards in CI.dashboard --check finds broken panels, design problems and implausible numbers. CLI
Add your own features as modules or plugins. Your own roles, panels, SQL macros and browser files from a separate (also private) crate: built into your own distribution, or compiled to one sandboxed .wasm plugin and loaded with --plugin. Modules and plugins
What it doesn't do (yet)
The community extension only renders.INSTALL … FROM community gives SQL → SVG. The server, the builder and the dashboard / serve CLIs come with a GitHub release or a source build.
Release files are unsigned. Load them with duckdb -unsigned; each release has checksums and build attestations.
DuckDB 1.5.6 is the release target. 2.0 is built and tested in CI (non-blocking); the pin moves with 2.0.1.
No drag-and-drop. Dashboards are SQL. The builder helps you write it; it doesn't hide it.
The AI assistant is off unless an installation turns it on, and it then uses your own Claude API key. It is still being evaluated.
Plugins are new. The dashboard CLI, serve, the DuckDB extension and the browser builder load them, and the releases ship plugin .wasm files; the plugin interface may still change.
Quick start
INSTALL anofox_visualization FROM community;
LOAD anofox_visualization;