explainx.ai350K+ learn from us
TrendingAI News TodayExplainx for Business
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

follow on google

Add explainx.ai as a preferred source

corporate training

support@explainx.ai

get started

Find your pathTake Free Evaluation

community

Join the community

learn

mind: share how you thinkpathways — start freeworkshopsbootcampscoursescompare Explainxcertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcpestacktoolsmdx readeragentsllmsdesignsdictionarypeopleagi trackerfelony benchranks

company

aboutvisionmissionteaminstructorsteach on explainxpartnershipscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource libraryfor LLMsexplainx.ai kids

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportcontactprivacytermsdata rightshow we create contentsubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

explainx.ai

On this page

  • TL;DR
  • The pagination problem Willison solved
  • How datasette-charts works under the hood
  • User experience: suggestions first, editor second
  • Claude Fable's role (and limits)
  • Installation and compatibility
  • How to install Datasette (context)
  • Comparison with other visualization paths
  • What would make this production-grade
  • Chart types and heuristics (what Willison promises)
  • Performance and SQLite realities
  • Building a newsroom workflow
  • Agent-assisted maintenance
  • What people ask after seeing the announcement
  • Looped transformers and visualization (why this week feels busy)
  • Security checklist before you expose charts
  • Teaching journalists to read aggregate SQL
  • Observability for operators
  • Long-term product bets Willison is signaling
  • Related on explainx.ai
← Back to blog

explainx / blog

datasette-charts 0.1a0: SQL Aggregates Across Every Row

Datasette, Open Source AI, Data Visualization, SQLite, Claude Fable

Part of Open-Weight Models

Simon Willison shipped datasette-charts 0.1a0 on Nov 23, 2026. It compiles charts to SQL GROUP BY queries over full tables, built with Claude Fable 5.2.

Nov 24, 2026·8 min read·Yash Thakker
add explainx.ai
go deep
datasette-charts 0.1a0: SQL Aggregates Across Every Row

datasette-charts 0.1a0 fixes a long-standing Datasette limitation: charts that silently ignored every row beyond the current HTML page. Simon Willison announced the plugin on November 23, 2026 after a Claude Fable 5.2 prototype session that graduated to a 0.1a0 PyPI release the same day. The plugin works on any table or arbitrary SQL inside Datasette, compiling GROUP BY aggregates across millions of rows before rendering D3-backed visuals.

Daily briefFrom Yash · 350K+ students taught

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

TL;DR

table · 2 cols
QuestionAnswer
Versiondatasette-charts 0.1a0 (alpha)
Ship dateNovember 23, 2026
Key fixCharts use full result sets, not paginated slices
SQL capAggregates return up to 5,000 rows for drawing
Try onlineDatasette Lite link in Willison's post
LibrariesVendored D3, Observable Plot, topojson-client

SQL funnel selecting rows for Datasette full-table chart aggregatesSQL funnel selecting rows for Datasette full-table chart aggregates

The pagination problem Willison solved

Datasette publishes SQLite databases as explorable websites. Pagination keeps pages fast, but visualization plugins inherited the page boundary:

  • datasette-vega and peers charted only visible rows—often ~100 entries.
  • Analysts exported CSV to LibreOffice or Observable to see real totals.
  • Public data journalists risked misleading charts during breaking news.

Willison had thought about the problem for over a year. On Sunday he fired up Claude Fable 5.2, built a prototype, and kept going until it became a plugin.

That story sits next to Datasette 1.0a43 security fixes from November 15 and datasette-arrows streaming exports—three November moves toward serious data publishing.

How datasette-charts works under the hood

Willison describes a compile-to-SQL pipeline:

  1. Inspect column types and row samples (with sampling on huge tables).
  2. Heuristically suggest chart types—thumbnails at the top are real mini visualizations, not icons.
  3. Compile the chosen chart to SQL using GROUP BY, time bucketing, and window functions.
  4. Fetch up to 5,000 aggregated points—enough for responsive D3 rendering.
  5. Persist UI state in the URL fragment for bookmarking.

Database cylinder stack representing SQLite tables behind Datasette chartsDatabase cylinder stack representing SQLite tables behind Datasette charts

Sampling matters: on multi-million-row tables, the plugin avoids scanning everything just to guess that a histogram fits. Once you pick a chart, the aggregate query still reflects the full logical result of your table or SQL string.

User experience: suggestions first, editor second

Willison's screenshots show:

  • A row of suggested chart thumbnails computed from live data
  • Clicking a thumbnail opens the full chart plus tuning controls
  • A manual builder for power users who know they want a scatter or bar upfront

Fragment persistence matches Datasette's design philosophy—shareable, static-friendly URLs without a separate BI login.

Claude Fable's role (and limits)

Willison is explicit: Claude Fable 5.2 wrote the initial prototype. He reviewed renders, iterated, and shipped 0.1a0. That is coding-agent craft applied to maintainer-owned OSS, not a drop-in replacement for design judgment.

Builders should still:

  • Pin Datasette and plugin versions in production
  • Audit vendored JS when upgrading
  • Run Datasette's stored-query security patches before exposing new UI surfaces

Installation and compatibility

Treat 0.1a0 as alpha:

bash
pip install datasette-charts==0.1a0
datasette install datasette-charts

Run against Datasette 1.0a44+ (per PyPI) or 0.65.6+ so you inherit November 2026 ACL fixes. For agent-facing installs, see datasette-agent in the same release wave.

Datasette Lite demo (linked from Willison's post) is the fastest how to use datasette path without a local Python venv.

How to install Datasette (context)

If how to install datasette is your starting point:

bash
pip install datasette
datasette serve database.db

Add datasette-charts once the base app answers on localhost. For browser-only experiments, Willison's November 17 post on running Datasette in the browser with Pyodide shows another surface area, though alpha plugins may lag behind desktop installs.

Comparison with other visualization paths

table · 3 cols
ToolFull-table aggregates?Best for
datasette-charts 0.1a0Yes (SQL compile)SQLite publishers
datasette-vegaNo (page-limited)Quick inline Vega on small pages
Export + ObservableYes (manual)One-off investigations
Hex / MetabaseYesPaid BI teams

What would make this production-grade

Willison calls the release the closest he has gotten to "visualize with minimal direction", but labels it alpha. Watch for:

  • Stable chart type APIs for plugin authors
  • Access control on expensive aggregate queries
  • Caching layers for public datasets under viral traffic

Link datasette-charts announcements back here from any newsroom postmortem when you adopt it.

Chart types and heuristics (what Willison promises)

Willison does not ship a exhaustive chart encyclopedia in the announcement, but the mechanics are consistent across Datasette map plugins and older vega work:

  • Time series appear when a datetime column dominates samples
  • Category bars appear when low-cardinality strings show up
  • Geographic plots lean on vendored topojson-client when lat/long columns exist

Thumbnails are not clipart—they are real renders on sampled data, so users trust suggestions before opening the editor. That reduces the "blank chart" paralysis reporters describe when opening generic BI tools during deadlines.

Performance and SQLite realities

Aggregates still hit SQLite on the server. 5,000 drawn points does not mean 5,000 scanned rows—it means the compiled SQL returned a bounded aggregate vector. On multi-gigabyte databases:

  • Expect CPU spikes the first time someone opens an expensive time bucket chart
  • Use Datasette's permission model so anonymous users cannot spam heavy GROUP BY queries
  • Consider read-only replicas if you publish election or sports datasets

Willison's sampling step protects suggestion latency; operators should still add indexes on bucketed columns for production.

Building a newsroom workflow

A practical Monday rollout for data journalists:

  1. Upgrade Datasette to 1.0a44+ for datasette-charts and stored-query ACL fixes
  2. Install datasette-charts==0.1a0 on the staging instance
  3. Open the Datasette Lite demo and copy fragment URLs into Slack for editors
  4. Document which tables are safe for auto-charts (no hidden PII columns)

Pair with datasette-arrows when analysts need Arrow exports after they pick a chart shape in the UI.

Agent-assisted maintenance

Willison used Claude Fable for the first implementation burst, not for ongoing releases. Teams experimenting with datasette-agent should still human-review SQL migrations—agents excel at boilerplate plugin files, not at guessing schema constraints on legacy government tables.

What people ask after seeing the announcement

Does datasette-charts replace datasette-vega? Not automatically. Vega still fits when you already authored a spec. datasette-charts targets discovery—let the plugin propose charts, then export or embed fragments in stories.

How to install datasette plugins in Docker? Bake pip install datasette-charts==0.1a0 into your image alongside Datasette 1.0a44+, mount SQLite read-only, and front with HTTPS so fragment URLs survive sharing.

Will this work on Datasette Cloud? Any hosted Datasette that allows custom plugins can ship it; verify memory limits on aggregate queries before enabling public million-row tables.

Does Claude Fable write insecure SQL? The plugin issues read-only aggregates through Datasette's query layer, but misconfigured permissions still expose rows. Patch stored-query ACLs from November 15 advisory work before adding UI that encourages ad-hoc exploration.

Can I embed charts in newsletters? Fragment URLs help, but email clients strip fragments—screenshot the rendered chart or host a static export for subscribers.

Looped transformers and visualization (why this week feels busy)

Willison's Fable session lands the same week as GLM-5.4 Loop Transformer and Inkling looped MoE speedups. Different problems—charts versus tokens—but the through-line is agents shortening the path from idea to shipped OSS.

Security checklist before you expose charts

Chart plugins increase attack surface because they encourage ad-hoc SQL. Before enabling datasette-charts on a public *.datasette.io or self-hosted domain:

  • Confirm Datasette 1.0a44+ or 0.65.6 so private stored queries cannot leak titles
  • Disable arbitrary SQL for anonymous users if your threat model includes scanner bots
  • Log slow queries and set statement timeouts at the SQLite connection layer where possible
  • Review CORS and CSRF settings when embedding fragments in third-party CMS pages

None of that is unique to datasette-charts—it inherits Datasette's permission model—but the lower friction to chart means more people will click suggestions without reading the underlying GROUP BY.

Teaching journalists to read aggregate SQL

When a reporter picks a suggested bar chart, show them the compiled SQL Datasette executed. Three lessons:

  1. Filters matter — a hidden WHERE on the table changes totals
  2. Buckets mask outliers — time bucketing can hide spikes unless you also chart raw events
  3. Nulls disappear — GROUP BY drops unset categories unless you coalesce

That training pairs with Datasette arrows streaming exports when they need to pivot in Polars after spotting a weird bucket.

Observability for operators

Metrics worth tracking the week you enable the plugin:

table · 2 cols
SignalWhy
p95 aggregate latencySpot expensive GROUP BY before viral traffic
Cache hit rateDatasette may cache queries; charts change access patterns
Error rate on fragmentsBroken fragments indicate schema drift
CPU per suggestion thumbnailSampling should stay sub-second on big tables

Long-term product bets Willison is signaling

In the announcement, Willison calls this release the closest he has gotten to automatic visualization. That signals future work on:

  • Better time-zone aware bucketing for news datasets
  • Collaborative editing without breaking fragment URLs
  • Tighter agent hooks so datasette-agent can propose charts in chat

None of those ship in 0.1a0, but the SQL-first architecture is the substrate—charts are views, not copies of data.

Related on explainx.ai

  • Datasette 1.0a43 security and streaming
  • datasette-arrows Apache Arrow exports
  • GLM-5.4 vs Claude Fable hands-on
  • Hugging Face Harbor agentic evals
  • Loop engineering with coding agents
  • What are agent skills

Plugin version and release date match Simon Willison's November 23, 2026 announcement.

Spotted something out of date? Let us know.
Daily briefFrom Yash · 350K+ students taught

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

  • ✓ Free
  • ✓ One email a day, no spam
  • ✓ Unsubscribe anytime

People in this article

  • Simon Willison →Independent open source developer and creator of Datasette
Explore people in AI →
Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

View Yash Thakker in People in AI →

Related posts

Nov 16, 2026

Datasette 1.0a43: Private Stored-Query Leak Fixed, Streaming Exports Ship

Simon Willison shipped Datasette 1.0a43 on November 15, 2026 with a GitHub security advisory for private stored queries, plus streaming renderers, row JSON redesign, and companion plugins for maps, apps, and agents.

Nov 19, 2026

datasette-arrows 0.1a0: Streaming Apache Arrow Exports in Datasette

On November 18, 2026 Simon Willison released datasette-arrows 0.1a0, a Datasette plugin that streams Apache Arrow IPC from any table or SQL query without loading millions of rows into memory.

Aug 1, 2026

Flint: Microsoft's Chart Spec for AI Agents, Explained

Microsoft Research open-sourced Flint, a compact JSON spec that compiles down to five different charting backends using semantic types instead of hand-tuned axes and scales. It shipped an MCP server for agents on day one — and promptly drew a sharp Hacker News debate about whether AI agents even need an intermediate chart language at all.