Simon Willison 发布 Datasette 图表插件 datasette-charts 0.1a0
datasette-charts 0.1a0
Simon Willison 用 Claude Fable 5.2 在一个周日写出了这个 Datasette 图表插件,亮点是图表 SQL 会在服务端聚合全表数据,不再像 datasette-vega 那样只画当前页 100 行。经常用 Datasette 查数据的人可以装上试试,顺便看看 agent 一天能产出什么。
Simon Willison 发布了 datasette-charts 0.1a0,这是 Datasette 的数据可视化插件,可在 Datasette Lite 中直接试用。插件对任意表格或 SQL 查询结果提供多种图表类型,内置基于 D3、Observable Plot 和 topojson-client 的启发式规则,自动推荐合适的图表,顶部缩略图就是基于真实数据渲染的预览。
与旧插件 datasette-vega 只能对当前页(一般最多 100 行)作图不同,新插件把每张图表编译成一条 SQL 查询,用 GROUP BY、时间分桶和窗口函数对整个结果集(可能上百万行)做聚合,每条查询结果上限 5,000 行,同时用抽样加速大表的图表推荐。图表状态保存在 URL 的 #fragment 中,便于收藏和分享。
Willison 表示这个原型是用 Claude Fable 5.2 在一个周日搭出来的,效果超出预期后升级为完整插件。目前仍是 alpha 版本,但已是他离“Datasette 尽量少依赖用户引导就能可视化数据”这一目标最近的一次。
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 , visualization , claude-mythos-fable
本条情报归属 AITOP「产品」核心栏目,重点聚焦北美前沿实验室与硅谷科技巨头。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」「中美大模型技术代差与商业化对照」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:Datasette、datasette-charts、Claude、数据可视化,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「Simon Willison’s Weblog」,经 AITOP 多维评分管线结构化提炼。