聊天中生成的图表可点击“Open in the chart builder”在侧边面板中打开,并与表格页面联动。
详细解读
演示流程中,作者向 Datasette Agent 输入“Use #stats to show sqlite-utils downloads over time as a chart”,其中输入 #stats 会打开表格搜索框。Agent 在聊天内联展示生成的图表;点击“Open in the chart builder”后,图表在面板中打开并同时显示表格页面。作者随后在表格页切换为“datasette”的图表,再询问 Agent“what does the chart show?”,Agent 能察觉面板内容已变化,并描述新的 Datasette 图表。
NewsletterSponsored by: Greptile — Review code faster with Greptile’s new PR inbox. It puts everything you need to understand a change and merge it on one screen. Try it for free
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.