Datasette-Charts: AI-Built Plugin for Full-Dataset Visualization
Datasette now has a charting plugin that automatically suggests and renders visualizations from database tables or SQL queries. The plugin analyzes data patterns with heuristics to propose chart types, then renders them using D3, Observable Plot, and topojson libraries. The key advance over previous visualization tools is scope: rather than showing only the current page of results, datasette-charts compiles entire result sets into aggregation queries, letting users visualize millions of rows through GROUP BY, time bucketing, and window functions that cap output at 5,000 rows suitable for rendering.
Development itself exemplifies modern practices. Willison used Claude Fable 5.2 to prototype the concept on a Sunday, and the results proved solid enough to ship as a full plugin. Chart configurations persist in URL fragments for bookmarking and sharing. When evaluating larger tables for chart suggestions, the plugin uses sampling to avoid expensive full-table scans during exploration.
The alpha release moves toward Datasette’s broader mission: enabling data exploration with minimal user configuration. Users can manually tweak suggested charts or build visualizations from scratch, with the plugin handling the SQL compilation and result aggregation transparently.
Read the full article
Continue reading at Simon Willison →This is an AI-generated summary. Read the original for the full story.