Lilith.
⌕
Editorial illustration: Datasette picks charts across millions of rows without sending them to the browser
Lilith illustration · editorial remix

Simon Willison released datasette-charts 0.1a0, a Datasette plugin that suggests suitable charts for any table or SQL query. The thumbnails are not decoration. They are real visualizations driven by the data, and users can modify a selected chart or build one manually.

A chart suggestion starts with the data and ends in a shareable link

The plugin uses D3, Observable Plot and topojson-client. Its chart types have heuristics that estimate whether each one suits a particular set of rows. The result is a ranked strip of actual chart previews.

Users can adjust the selected chart. Its state lives in the URL fragment, so a chart can be bookmarked or sent to a colleague without a separate export. Willison says he started the prototype on Sunday with Claude Fable 5.2 and expanded the successful experiment into a full plugin.

The real product is the SQL between the table and the picture

Earlier Datasette visualization plugins generally worked with the current page of results, usually no more than 100 rows. datasette-charts instead compiles a chart specification into SQL using GROUP BY, time bucketing and window functions. The query can aggregate millions of source rows while returning no more than 5,000 rows for display.

That changes the plugin's job. It does more than choose an attractive picture. It decides how to reduce the data without stripping the chart of meaning. For an analyst, being able to inspect the SQL matters more than a polished thumbnail because it reveals what actually entered the calculation.

A heuristic can still recommend a convincing mistake

For large tables, the plugin uses sampling so it does not have to evaluate the full source while suggesting charts. That saves time, but a sample can miss a rare category, a seasonal break or an uneven distribution. A polished chart can still rest on the wrong axes or aggregation.

Version 0.1a0 is an alpha, and the author provides no benchmark for recommendation accuracy. The release shows that the path from schema to a usable chart can be automated. It does not show that the first suggestion explains a particular dataset correctly.

Visible SQL and awkward datasets will decide whether users trust it

Future releases will be tested by tables with missing values, long tails and categories that barely appear in the sample. Query time and clear warnings when a suggestion relies only on a sample will matter as well.

The best signal will come from users correcting a suggested chart. If the plugin can explain its choice and preserve the revised specification in a shareable link, it can shorten the first half hour of analysis without pretending to understand what the data means.

Lilith's verdict

An automatic chart is useful while the analyst can see the SQL beneath it. Hide the calculation and all that remains is a confident picture in a meeting room.