Datasette gets a charts plugin that counts every row, not just 100
Simon Willison has released an alpha of datasette-charts, a plugin that draws charts from any table or SQL query in Datasette. The older datasette-vega built charts only from the current page, roughly 100 rows. The new plugin compiles each chart into a SQL query with GROUP BY and returns up to 5,000 rows, but the aggregation runs over all millions of rows. As a result, charts on large tables now reflect the full data rather than the first page.
AI-processed from Simon Willison; edited by Hamidun News
Anyone who has opened a large table in Datasette and tried to quickly chart it has run into the same problem: the chart only shows what is on screen. Simon Willison, the creator of Datasette, has released an alpha of the datasette-charts plugin, which addresses this directly: the chart is computed over all rows, not over a single page of results.
What the plugin does
Datasette is a tool for publishing and exploring data from SQLite. The datasette-charts plugin works with any table and with arbitrary SQL queries. When you open a table, a Charts panel appears at the top with a set of thumbnail suggestions. These are not placeholders: each thumbnail is a real visualization of your data with a clear title, such as "Total downloads per week of date" or "Total downloads by package."
Select a suggestion and it expands to full width. A sidebar appears next to it with the chart type, a time axis grouped by week, a value (for example, the sum of downloads), and a breakdown by category. You could, for instance, keep the five largest packages and collapse the rest into an Other group. If the suggestions do not fit, you can build the chart manually from scratch.
Under the hood are several chart types based on D3, Observable Plot, and topojson-client (for maps). Each type has a set of heuristics that determine whether it fits specific columns. For example, if a table has dates and numbers, it makes sense to suggest a time line.
Why "all rows" is the key feature
Earlier plugins, such as datasette-vega, built charts from the current result page, usually up to 100 rows. For a table with a million records, this is misleading: the shape of the curve depends on which hundred rows happened to be at the top.
In datasette-charts, each chart is compiled into a SQL query. It uses GROUP BY, time bucketing, and window functions, and aggregates the entire result, potentially millions of rows. The query itself returns no more than 5,000 rows, which is enough for rendering. The database does the computation, and the browser only has to draw the result.
There is also a caveat. To avoid running the full query for every suggestion, the plugin suggests chart types for large tables based on a sample of rows. The interface states this explicitly: suggestions are based on a sample, while the charts themselves use all rows. This means that a rare feature of the data that falls outside the sample may not produce the relevant suggestion, but it will be included in a chart once that chart is selected.
Links, the prototype, and what to make of it
As with other Datasette visualization plugins, the chart state is stored in the URL fragment (after the # sign). A chart can therefore be bookmarked or sent to a colleague, and the link will reproduce the same configuration. The plugin can be tried in Datasette Lite, a version of Datasette that runs directly in the browser without installing a server.
How the plugin came about is also worth noting. According to Willison, he had been thinking about this task for more than a year, and on Sunday he launched Claude Fable 5.2 and built the first prototype. The prototype turned out well enough to grow into a full plugin. It is a typical example of working with coding agents: an idea that had been postponed for a long time can be tested over a weekend and quickly becomes a usable tool. The article does not provide details on how many revisions were needed or how the work with the agent was structured, so the quality of the generated code cannot be judged from it.
Version 0.1a0 is explicitly an alpha. The author himself stresses that the plugin is still rough, but that it is the closest he has come to his goal of Datasette helping visualize data with minimal input from the user. The announcement contains no speed benchmarks for large tables, so response times on millions of rows will need to be verified independently.
The practical takeaway for those who use Datasette to analyze logs, metrics, or open datasets: install the plugin and compare the picture it gives with what older tools showed. For those building their own BI interfaces, the approach is useful in itself: move aggregation into SQL, limit the size of responses, and store chart state in a link, so that the visualization remains accurate and reproducible.
- Nov 24, 2026AI Agent Skills Add Just 11.6 Points of Success for Coding, but 28.8 for Science
- Nov 24, 2026GAO Auditors Got Four Chatbots to Help Plan Attacks, and Experts Said the Plans Would Work
- Nov 24, 2026Anthropic Interviewed 66 People at 58 Companies: AI Is Growing Output, Not Cutting Staff
- Nov 24, 2026Amazon to Buy Decart's Technology and Founders for About $7.5 Billion
Key Questions Answered
What the plugin does?
Datasette is a tool for publishing and exploring data from SQLite. The datasette-charts plugin works with any table and with arbitrary SQL queries. When you open a table, a Charts panel appears at the top with a set of thumbnail suggestions. These are not placeholders: each thumbnail is a real visualization of your data with a clear title, such as "Total downloads per week of date" or "Total downloads by package." Select a suggestion and it expands to full width.
Why "all rows" is the key feature?
Earlier plugins, such as datasette-vega, built charts from the current result page, usually up to 100 rows. For a table with a million records, this is misleading: the shape of the curve depends on which hundred rows happened to be at the top. In datasette-charts, each chart is compiled into a SQL query. It uses GROUP BY, time bucketing, and window functions, and aggregates the entire result, potentially millions of rows. The query itself returns no more than 5,000 rows, which is enough for rendering.
What are the key details on Links, the prototype, and what to make of it?
As with other Datasette visualization plugins, the chart state is stored in the URL fragment (after the # sign). A chart can therefore be bookmarked or sent to a colleague, and the link will reproduce the same configuration. The plugin can be tried in Datasette Lite, a version of Datasette that runs directly in the browser without installing a server. How the plugin came about is also worth noting.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
The AI world, distilled — once a week
Seven stories that actually mattered, hand-picked. No noise, no reposts, no press releases.
Done! Check your inbox for a confirmation.