Simon Willison released datasette-charts 0.1a0, a Datasette plugin that generates visualizations for any table or arbitrary SQL query using vendored D3, Observable Plot, and topojson-client. The plugin employs heuristics to suggest chart types, displaying data-driven suggestion thumbnails that link to full interactive charts with modification tools; chart state persists in a URL fragment for sharing. Unlike prior plugins such as datasette-vega, which visualized only the current page (up to 100 rows), datasette-charts compiles each chart into a SQL query that aggregates across the entire result set — potentially millions of rows — using GROUP BY, time bucketing, and window functions, returning results capped at 5,000 rows for rendering. For larger tables, the plugin uses sampling to generate suggestions without evaluating the full dataset. The alpha release is available to test in Datasette Lite.
Read original
simonwillison