datasette-charts 0.4a0

Simon Willison's Blog Tools

Summary

datasette-charts 0.4a0 introduces a refined plugin hook for defining custom chart types, along with a new website at charts.datasette.io featuring a plugin-author tutorial and an interactive gallery with Datasette Lite demos.

No content available
Original Article
View Cached Full Text

Cached at: 11/28/26, 03:49 AM

# Release: datasette-charts 0.4a0 Source: [https://simonwillison.net/2026/Nov/27/datasette-charts/](https://simonwillison.net/2026/Nov/27/datasette-charts/) The new datasette\-charts plugin has its own plugin hook to allow other plugins to define new chart types, but I hadn't actually used it for anything yet\. I had Claude Opus 5\.5 build an experimental plugins just to try out the hook and it came up with a bunch of friction points in the design\. This release addresses those, which should make building additional chart plugins a whole lot more ergonomic\. I've also added a website for the plugin, at[charts\.datasette\.io](https://charts.datasette.io/)\. The new website includes a[tutorial for plugin authors](https://charts.datasette.io/docs/plugins/), and[a gallery](https://charts.datasette.io/gallery/)showing all of the core charts and annotations, each one linking to an interactive demo on[Datasette Lite](https://lite.datasette.io/)\. ![Screenshot of a documentation page section showing a two-by-two grid of cards, each with a chart screenshot, a heading, a description, a link and a collapsed disclosure. Heading: "Annotations". Intro text: "Notes drawn on a chart: lines, shaded ranges, callouts and text. They are part of the chart's spec, so they are kept in the link to the chart. Documentation for annotations." where "Documentation for annotations" is a link. Card 1: an area line chart titled "Rows per quarter of published_at", y-axis labelled "↑ Rows" with ticks 0, 20, 40, 60, 80, 100, 120, 140, 160 and x-axis ticks 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026, with a vertical dashed line just before 2023 labelled "Datasette 1.0a0"; the line peaks near 150 in mid 2020 and near 138 in early 2023. Caption "SCREENSHOT". Heading "A line at an x value". Text "A dashed line across the chart at a date, here the day of a release." Link "Try this demo yourself". Disclosure "▶ Chart spec". Card 2: a stacked bar chart titled "Rows per year of upload_time by packagetype", legend "bdist_wheel" (blue) and "sdist" (orange), y-axis labelled "↑ Rows" with ticks 0, 100, 200, 300, 400, 500, 600 and x-axis ticks 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026, 2027, with a solid red horizontal line at 500 labelled "500 uploads a year"; the bars for 2020, 2021 and 2023 rise above the line. Caption "SCREENSHOT". Heading "A line at a y value". Text "A reference line at a value, drawn solid and in red." Link "Try this demo yourself". Disclosure "▶ Chart spec". Card 3: a blue histogram titled "Distribution of latitude", y-axis labelled "↑ Rows" with ticks 0, 1,000, 2,000, 3,000, 4,000, 5,000, 6,000, 7,000, 8,000 and x-axis labelled "latitude →" with ticks −80, −60, −40, −20, 0, 20, 40, 60, with a grey shaded band from roughly −23 to 23 labelled "The tropics"; the tallest bar is just above 7,000 at around 40. Caption "SCREENSHOT". Heading "A shaded range". Text "A band between two x values, on a histogram." Link "Try this demo yourself". Disclosure "▶ Chart spec". Card 4: a scatter plot of blue dots titled "generation_gwh_2017 against capacity_mw", y-axis labelled "↑ generation_gwh_2017" with ticks 0, 5,000, 10,000, 15,000, 20,000, 25,000, 30,000, 35,000, 40,000 and x-axis labelled "capacity_mw →" with ticks 0, 1,000, 2,000, 3,000, 4,000, 5,000, showing an upward trend, with one black dot at the far right near 5,400 capacity and 31,000 generation joined by a short line to the label "Gravelines, France". Caption "SCREENSHOT". Heading "A callout on a point". Text "A dot on one data point with a line to its label. On a scatter plot the callout gives both x and y." Link "Try this demo yourself". Disclosure "▶ Chart spec".](https://static.simonwillison.net/static/2026/datasette-charts-gallery.webp)

Similar Articles

datasette-charts 0.2a0

Simon Willison's Blog

datasette-charts 0.2a0 adds integration with Datasette Agent, letting users request charts via chat and generate them using built-in chart suggestion and generation tools, with interactive chart-building panels.

datasette-charts 0.3a0

Simon Willison's Blog

datasette-charts 0.3a0 adds chart annotations—lines, shaded areas, and labels—that can be edited via a chart builder UI or generated automatically by Datasette Agent.

datasette-charts-pie 0.1a0

Simon Willison's Blog

Simon Willison released datasette-charts-pie 0.1a0, a Datasette plugin adding pie, donut, sunburst, and rose chart types to datasette-charts, with live demos available in Datasette Lite.

datasette-agent-charts 0.1a2

Simon Willison's Blog

datasette-agent-charts 0.1a2 is an alpha release of a plugin for Datasette that adds charting capabilities.

datasette-charts 0.1a0

Simon Willison's Blog

Simon Willison releases datasette-charts 0.1a0, a Datasette plugin that auto-suggests and renders interactive charts by compiling them into SQL aggregations across the full result set rather than just the current page.