[KongchangAI]
· 2 min read· 1,089 words

Datasette Charts 0.2a0: Generate Data Charts Just by Chatting

Datasette Charts 0.2a0: Generate Data Charts Just by Chatting

datasette-charts 0.2a0 integrates with Datasette Agent, enabling chart generation directly in chat.

datasette-charts is a Datasette chart plugin by Simon Willison, and version 0.2a0 completes its integration with Datasette Agent. Users can describe chart needs in natural language in chat, and the Agent calls shared chart suggestion and generation tools to produce interactive results. The demo shows inline charts, jumping to the chart builder panel, and the Agent's context awareness of dataset changes in the panel. The design abstracts chart capability into agent-callable tools sharing the same logic as the plugin, continuing Datasette's plugin-oriented approach. It's an alpha release, available for trial at agent.datasette.io.

Simon Willison's open-source Datasette chart plugin datasette-charts has released version 0.2a0. The biggest change in this release is the integration with Datasette Agent—users can now request charts directly in a chat interface, and the plugin calls the underlying chart suggestion and generation tools to turn data into interactive visualizations.

From Plugin to Agent: A New Path for Chart Generation

rss source: datasette-charts 0.2a0

datasette-charts is a chart plugin Willison launched just the day before, aimed at quickly converting data tables in Datasette into charts. Version 0.2a0 connects it to Datasette Agent, the conversational agent entry point in the Datasette ecosystem. The key to this integration isn't "one more button"—it's that chart generation capability has been abstracted into tools that an agent can call.

According to Willison's description, users simply describe the chart they want in chat, and the Agent uses the same chart suggestion and generation logic to produce results. This means the plugin itself and the agent share the same capability layer, rather than each maintaining its own independent rendering logic.

A Real Interaction Flow

The demo video shows the complete workflow: the user types "Use #stats to show sqlite-utils downloads over time as a chart", where "#stats" opens a table search box letting the user specify a data table. The Agent then displays the chart inline in the chat. After clicking "Open in the chart builder", the chart opens in a side panel alongside the corresponding table page.

This detail is worth noting: the chart and the raw data table are accessible side by side. The user switches the dataset underlying the chart on the table page—for example, to "datasette"—then turns back to ask the Agent "what does this chart show?" The Agent can detect that the panel content has changed and describe the new Datasette chart. This shows the Agent is aware of the current context, rather than generating once and then becoming disconnected from the interface state.

Datasette is an open-source data exploration and publishing tool developed by Simon Willison. Its core idea is to wrap a SQLite database into a browsable, queryable, API-accessible web application. It's lean by itself but extends through a plugin mechanism to add maps, exports, authentication, visualization, and more, forming an ecosystem built around "the data table is the interface." Datasette Agent is the conversational entry point added on top of this, allowing users to operate data and plugin tools with natural language. Understanding the relationship between these two layers helps clarify the positioning of datasette-charts 0.2a0: it's not a standalone app but rather registers chart capability as tools callable by the Agent, creating a reuse channel between the plugin ecosystem and the agent.

#stats table search is a quick reference mechanism in the Datasette Agent chat interface: typing # followed by a name pops up a data table selector, injecting the user-specified table into the conversation context in a structured way. This way the Agent doesn't have to guess which table the user means, and can keep locating that data source across subsequent turns. Compared with pasting a table name directly, this reference approach reduces ambiguity and provides an explicit binding for "which table the chart is generated against"—a key interaction design that makes the demo flow smoothly reproducible.

The Practical Value of Agent Integration

rss source: datasette-charts 0.2a0

Handing chart capability to a chat entry point solves the "expression cost" problem in data exploration. In the traditional flow, users first need to understand the table structure, then choose a chart type, then adjust field mappings. Now users can describe their goal in natural language, and the Agent translates the intent into chart configuration.

At the same time, the chart builder panel preserves room for manual adjustment. This combination of "conversational generation + panel fine-tuning" is more practical than pure chat-based generation—natural language is good for a quick start, and the visual panel is good for precise control.

Open Trial and Ecosystem Connections

Willison mentions that users can log in with a GitHub account at agent.datasette.io to try the plugin themselves. The chat logs from the demo are also exported and published in Markdown form, making it easy for others to reproduce and understand the interaction details.

datasette-charts continues the plugin-oriented approach long characteristic of the Datasette ecosystem: charts aren't hard-coded into the core but exist as composable capabilities that can be used directly by human users and called as tools by the agent. This design lets the same feature be reused across different interaction layers, reducing duplicate implementation.

Chart suggestion and generation logic here refers to a shared underlying capability: based on a data table's field types, value distributions, and user intent, it recommends a suitable chart type (such as line, bar, or scatter) and generates the corresponding configuration. Since the plugin and the Agent call the same logic, charts produced in chat are consistent in structure and behavior with those created manually in the chart builder. This separation of "capability layer from interaction layer" avoids the problem of the same feature being implemented separately at the chat entry point and the manual interface with drifting behavior, and also lowers maintenance costs down the road.

Implications for the Intelligence of Data Tools

This release sends a signal: making data tools intelligent doesn't necessarily require rewriting the entire product—wrapping existing capabilities as tools callable by an agent is enough to gain a conversational entry point. Modules like chart suggestion, generation, and panel display originally served manual operation, and after connecting to the Agent they directly gain natural language interaction capability.

For Datasette users, 0.2a0 is an experimental release worth watching, especially suited to scenarios where people frequently switch between data tables and want quick visual feedback. It's still in alpha, and future versions may continue to evolve in chart type support, the Agent's context understanding, and multi-turn modifications.

One-line Summary

datasette-charts 0.2a0 integrates with Datasette Agent, enabling chart generation directly in chat.

Paragraph Summary

datasette-charts is a Datasette chart plugin by Simon Willison, and version 0.2a0 completes its integration with Datasette Agent. Users can describe chart needs in natural language in a chat interface, and the Agent calls shared chart suggestion and generation tools to produce interactive results. The demo shows inline charts, jumping to the chart builder panel, and the Agent's context awareness of dataset changes in the panel. The design abstracts chart capability into tools callable by the agent, sharing the same logic with the plugin, continuing Datasette's plugin-oriented approach. It's currently an alpha release, available for trial at agent.datasette.io.

#Datasette Charts#Datasette Agent#Simon Willison#chart generation#data visualization#plugin integration
Share:

Related articles