datasette-charts 0.3a0 Released: Chart Annotations Support

datasette-charts 0.3a0 adds chart annotations and can generate annotated charts with AI agents.
The Datasette visualization plugin datasette-charts released version 0.3a0, adding chart annotations—points, ranges, lines, and standalone text—that can be combined and overlaid on charts, moving them from displaying data to explaining it. Annotations are defined via JSON configuration, and users can preview and adjust them in real time in Datasette Lite's chart builder for a WYSIWYG experience. The feature also works with Datasette Agent, letting AI automatically generate annotated charts from natural language prompts with further fine-tuning in the builder. The author sees this as a sign that data tools are incorporating the explanation layer into their core capabilities, making charts shareable, reproducible analytical artifacts. The version is currently alpha, and details may continue to be adjusted.
Chart Annotations Feature Launched
The visualization plugin datasette-charts in the Datasette ecosystem has received a 0.3a0 version update, with the core change being the addition of chart annotations. Users can overlay lines, shaded regions, and text labels on rendered charts, or combine all three to convey richer analytical conclusions.
According to project author Simon Willison, the design goal of the annotation feature is to move charts from "displaying data" to "explaining data." Annotations that previously could only be added through external tools or post-processing can now be done directly within Datasette's chart configuration.

Three Annotation Types and Combined Use
The new version supports three types of annotations:
- Point annotations: Place markers and explanatory text on specific data points, ideal for highlighting key values.
- Range annotations: Use shaded regions to cover a horizontal axis interval, used to emphasize a particular phase or group.
- Line annotations: Draw horizontal reference lines to help readers compare against thresholds or baselines.
There is also a standalone text annotation, which can place explanatory text anywhere on the chart, such as notes on data sources or statistical methodology. These annotations are defined through JSON configuration, with each annotation containing a type, position parameters, and optional text content.
Real-Time Adjustment in Datasette Lite
The author provides an interactive example demonstrating the actual effect of annotation configuration. The example chart uses the global power plant database, aggregating installed capacity by commissioning decade, overlaid with range shading, point annotations, and horizontal reference lines. Readers can open the chart directly in Datasette Lite and modify annotation parameters through the chart builder UI.

As seen in the demo animation, editing an annotation brings up a dialog containing fields for type, value, label text, label position, color, and line style. The preview panel on the right updates in real time as you type—adjusting the reference line value moves the dashed line synchronously; changing the label text immediately updates the annotation on the chart. This WYSIWYG editing approach lowers the barrier to configuring annotations.
Datasette Lite is a pure browser version of Datasette that uses Pyodide to compile the Python runtime to WebAssembly and load it into the page, so SQLite queries and plugin logic can run in the browser without a backend server. It loads data files and plugins via URL parameters, which is why the article mentions using "install parameters" to try datasette-charts directly. Since the chart builder and preview panel all run on the frontend, modifying annotation configuration requires no server round-trip, enabling the input-and-refresh WYSIWYG effect. This also means that sharing a Datasette Lite link effectively shares the data, SQL, and chart configuration all at once.
Integration with Datasette Agent: Generating Annotated Charts with Natural Language
The annotation feature can also work with Datasette Agent. After installing the Agent, users can use natural language prompts to have the AI agent directly generate annotated charts. The example prompt the author gives on the demo site is: compare the number of entries about LLMs versus about Datasette in Simon's content, and add annotations.
The agent returned a line chart comparing content counts for the two topics by year, automatically annotating Datasette's peak year and the upward trend of LLM-related content on the chart. Below the chart, there are also action entry points such as "Open in Chart Builder," "Copy Link," "View SQL," and "Copy TSV/CSV."

The significance of this combination is that creating annotations no longer requires manually writing JSON—the AI can automatically select appropriate annotation positions and copy based on data characteristics, and users can then fine-tune through the builder. For users unfamiliar with the configuration format, this is a more friendly entry point.
Datasette Agent is an AI agent layer built on top of Datasette that exposes the database schema, available plugins, and query tools to large language models, letting the model decide which tools to call to fulfill user requests. In chart scenarios, the agent typically first generates SQL queries based on natural language questions, then calls datasette-charts' rendering interface, and expresses annotations as the same JSON configuration. Because the annotation format is structured, the model can reliably output type, position, and copy fields rather than manipulating a graphical interface. This "tool calling + structured output" pattern is precisely why it can automatically choose annotation positions and allow users to continue fine-tuning in the builder.
Impact on Data Storytelling Workflows
The annotation feature in datasette-charts may seem like a minor iteration, but it points to a clear trend: data tools are incorporating the "explanation layer" into their core capabilities. Traditional chart libraries typically only handle rendering, with annotations often requiring additional code or design tools. By bringing annotations into the configuration system, charts themselves become shareable, reproducible analytical artifacts—a single link contains both the data query and the interpretation of the data.
Combined with Datasette Agent's natural language generation capabilities, this path is further shortened: from question to annotated chart without manually switching tools in between. For teams doing data journalism, internal reporting, or exploratory analysis, this integrated workflow can reduce repetitive work.
Currently, 0.3a0 is an alpha version, and feature details may continue to be adjusted. Developers interested can try the plugin through Datasette Lite's install parameters or check the release notes on GitHub.
Related articles

The AI Extinction Threat: A 90% Probability and a 6–18 Month Window
A YouTube video warns that without halting AI development, humanity could face an extinction threat from superintelligence within 6 to 18 months, with over 90% probability. This article examines its core arguments, Sam Altman's remarks, and divisions among AI safety experts.

Terence Tao on AI and the Riemann Hypothesis: Autonomous AI Won't Crack It—Human-AI Collaboration Is the Future
Fields Medalist Terence Tao on AI and the Riemann Hypothesis: fully autonomous one-shot AI isn't the answer—new human-AI collaboration is the future of math research.

AI Made Self-Hosting Fun Again: Behind the HN Buzz
A Hacker News post saying "AI made self-hosting fun again" resonates. This analysis explores how AI lowers the barriers of configuration, troubleshooting, and documentation comprehension in self-hosting, restoring the joy of creation—while noting AI's limits in operations security.