Skip to content
Hot storyPast event

datasette-charts 0.1a0 Released

2 reports1 reporting sourcesFirst reportedUpdated 8d ago

Get up to speed

AI overview

Simon Willison released a new charting plugin for Datasette, datasette-charts 0.1a0. The plugin allows visualizing data from any table or SQL query in Datasette, using various chart types and heuristics. It supports full result set visualization, unlike previous plugins that limited charts to the current page. The plugin is still in alpha, aiming to provide minimal user direction for data visualization. The plugin has been integrated with Datasette Agent, enabling users to request charts through chat, which are then generated using the same tools. A demo video is available for testing the plugin on agent.datasette.io.

Generated by AI from the reports · Updated 6d ago

Latest developmentNov 24 12:24
datasette-charts 0.2a0

Developments

2 developments

  1. Nov 24 12:24 · 1 reports
    datasette-charts 0.2a0
    Simon Willison:datasette-charts 0.2a0
  2. Nov 23 08:37 · 1 reports
    datasette-charts 0.1a0
    Simon Willison:datasette-charts 0.1a0

Report timeline

Follow the reporting to see the story from different angles.

Nov 24
  1. Simon Willison
    datasette-charts 0.2a0

    Release: datasette-charts 0.2a0 I introduced this new charting plugin for Datasette yesterday . Today it's gained integration with Datasette Agent , so now you can ask chat for a chart and it will create one for you using the same underlying chart suggestion and generation tools. Here's a demo video, recorded on agent.datasette.io where you can sign in with GitHub to try the plugin yourself: Download the video (MP4) I prompt Datasette Agent to "Use #stats to show sqlite-utils downloads over time as a chart" - where typing "#stats" opens a table search box. It shows me a chart inline in the chat, and when I click "Open in the chart builder" it opens the chart in a panel along with the table page. I use the table page to switch to a chart of "datasette", then when I ask the agent "what does the chart show?" it notices that I changed the content in the panel and describes the new Datasette chart to me. Here's a Markdown export of the chat from the video. Tags: datasette-agent , datasette , visualization , datasette-charts , sqlite

Nov 23
  1. Simon Willison
    datasette-charts 0.1a0

    Release: datasette-charts 0.1a0 I've been thinking about this problem for over a year now, but on Sunday I finally fired up Claude Fable 5.2 to build an initial prototype. The prototype went so well that this is now a full plugin. You can try it out in Datasette Lite here . It looks like this: The new charts plugin works against any table or arbitrary SQL query in Datasette. It defines several different chart types (using vendored D3 , Observable Plot , and topojson-client ), each with a set of heuristics for identifying when they might be a good match for a specific set of rows. Those suggestion thumbnails at the top are actual visualizations driven by the data, and selecting one pulls up the full chart along with tools for modifying it. You can also manually construct a chart from scratch. As with other Datasette visualization plugins, the current state of your chart is persisted in a #fragment in the URL - so you can bookmark charts or share them with others. The most important feature is that the charts take all rows into account . Previous charting plugins like datasette-vega would only show charts for the current page of results, generally up to 100 rows. The new plugin compiles each chart to a SQL query that aggregates across the entire result set (potentially millions of rows) using GROUP BY, time bucketing, and window functions. Each query returns a result capped at 5,000 rows, suitable for display on the chart. The plugin uses sampling to help suggest charts for larger tables without evaluating the full result set. I'm really happy with this initial release of the plugin. It's still very much an alpha, but it's the closest I've got to the dream of Datasette helping visualize data with as little required direction from the user as possible. Tags: coding-agents , generative-ai , projects , ai , llms , datasette-charts , sqlite , datasette , visualization , claude-mythos-fable

Heat trend for this story

Current, comparable range
3
Peak, comparable range
5Nov 25 14:00
Change over the last 24 hours
–

The trend only compares the same subjects observed continuously throughout; the range may be smaller than the current heat count. Move the pointer or tap the chart to see hourly heat; use the left and right arrow keys on a keyboard.