@zhangguiping-xydt

Chart

OpenClaw Chart plugin — generate bar, line, pie, scatter, and area charts as SVG images

当前版本
v2026.5.31-2
code-plugin社区source-linked

Chart Generator

OpenClaw 图表生成插件 — 支持柱状图、折线图、饼图、散点图、面积图,输出纯 SVG,零依赖。

安装

openclaw plugins install clawhub:chart-plot

使用

安装后在对话中直接让 agent 生成图表:

把这份销售数据画成柱状图

插件会注册一个 chart 工具,agent 自动调用。

支持的图表类型

类型tool type 参数
柱状图bar
折线图line
饼图pie
散点图scatter
面积图area

配置

{
  "plugins": {
    "entries": {
      "chart-generator": {
        "enabled": true,
        "config": {
          "defaultWidth": 800,   // 默认宽度 (200–4000)
          "defaultHeight": 500   // 默认高度 (200–4000)
        }
      }
    }
  }
}

开发

git clone https://github.com/zhangguiping-xydt/chart-generator.git
cd chart-generator

# 编译
npx esbuild index.ts --outfile=index.js --format=esm --platform=node --bundle --external:'openclaw/plugin-sdk/*' --external:'node:*' --target=node24

许可

MIT

源码与版本

源码仓库

zhangguiping-xydt/chart-plot

打开仓库

源码提交

f1b4206f6276e02d59750ec158697dfecfeeba07

查看提交

安装命令

openclaw plugins install clawhub:chart-plot

元数据

  • 包名: chart-plot
  • 创建时间: 2026/05/28
  • 更新时间: 2026/05/28
  • 执行代码:
  • 源码标签: master

兼容性

  • 构建于 OpenClaw: 2026.5.31
  • 插件 API 范围: >=2026.5.31
  • 标签: latest
  • 文件数: 8