Token导航 LogoToken导航

Agent Skill · 图像处理

chart-image(图表图像)

用于辅助图像生成、图片编辑、视觉素材处理或图像模型工作流。它适合让 Agent 根据文本生成图片、处理背景、整理视觉提示词或调用相关图像工具。使用时需要确认输入图片、版权来源、输出格式和模型限制;涉及人物、品牌、商品或公开展示素材时,应额外核对授权、真实性和内容合规边界。

chart-image 是图像处理类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为操作浏览器;许可证为 MIT-0,第三方扫描已通过,按安装量在图像处理类的 1,562 个 Skill 里排第 12。

总安装 324,443周安装 13,655GitHub Stars 15下载 113,610核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
2.6.35

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:chart-image(图表图像)
来源仓库:https://github.com/dannyshmueli/chart-image
安装命令:
openclaw skills install chart-image
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install chart-image

这个 Skill 是做什么的

图像处理类 Skill 处理生成、裁剪、压缩和批量转换图片的任务。

从结构化数据生成高质量图表图像,支持多种金融与市场图表类型。适用于股票、指数与加密货币数据的 OHLC、烛台图绘制。输出格式包括 PNG/SVG,可用于文档与网页嵌入。涉及财务数据时应注意来源准确性与版权声明。chart-image 属于图像处理类 Skill,可作为该场景下的辅助能力补充。

建议核对模型限制与分辨率设置以满足出版要求。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install chart-image;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

chart-image 怎么安装?

在终端执行 openclaw skills install chart-image。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

chart-image 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

chart-image 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

chart-image 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

chart-image 用的人多吗?

公开数据是累计安装 324,443 次,近一周安装 13,655 次,下载 113,610 次,GitHub 15 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

chart-image 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理图像处理类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

图像处理类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
ai-image-generation

AI 图像生成 · Codex、Claude

4,365,552382调用外部服务未明确有提醒
openai-image-gen

OpenAI 图像生成 · OpenClaw

1,906,88432需要联网MIT-0有提醒
image

图像 · OpenClaw

525,99926需要联网MIT-0通过
baoyu-cover-image

宝玉封面图 · Codex、Claude

474,24016,779只读MIT有提醒
baoyu-image-gen

宝玉图像生成器 · Codex、Claude

468,00716,778接触敏感数据MIT通过
chart-image

图表图像 · 本页

324,44315操作浏览器MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
chart-image
description
Generate publication-quality chart images from data. Supports line, bar, area, point, histogram, candlestick, pie/donut, heatmap, multi-series, and stacked charts. Use when visualizing data, creating graphs, plotting time series, showing distributions, or generating chart images for reports/alerts. Designed for Fly.io/VPS deployments - no native compilation, no Puppeteer, no browser required. Pure Node.js with prebuilt binaries.

Chart Image Generator

Generate PNG chart images from data using Vega-Lite. Perfect for headless server environments.

Why This Skill?

Built for Fly.io / VPS / Docker deployments:

  • ✅ No native compilation - Uses Sharp with prebuilt binaries (unlike canvas which requires build tools)
  • ✅ No Puppeteer/browser - Pure Node.js, no Chrome download, no headless browser overhead
  • ✅ Lightweight - ~15MB total dependencies vs 400MB+ for Puppeteer-based solutions
  • ✅ Fast cold starts - No browser spinup delay, generates charts in <500ms
  • ✅ Works offline - No external API calls (unlike QuickChart.io)

Setup (one-time)

cd /data/clawd/skills/chart-image/scripts && npm install

Quick Usage

node /data/clawd/skills/chart-image/scripts/chart.mjs \
  --type line \
  --data '[{"x":"10:00","y":25},{"x":"10:30","y":27},{"x":"11:00","y":31}]' \
  --title "Price Over Time" \
  --output chart.png

Chart Types

Line Chart (default)

node chart.mjs --type line --data '[{"x":"A","y":10},{"x":"B","y":15}]' --output line.png

Quantitative X-domain clamp

Useful when you want a fixed numeric or temporal window without editing Vega-Lite by hand:

node chart.mjs --type line \
  --data '[{"minute":0,"value":12},{"minute":1,"value":18},{"minute":2,"value":14},{"minute":3,"value":20}]' \
  --x-field minute --y-field value --x-type quantitative \
  --x-domain 0,2 --title "First 3 Minutes" \
  --output x-domain.png

Bar Chart

node chart.mjs --type bar --data '[{"x":"A","y":10},{"x":"B","y":15}]' --output bar.png

Area Chart

node chart.mjs --type area --data '[{"x":"A","y":10},{"x":"B","y":15}]' --output area.png

Histogram

Use this for numeric distributions instead of pre-binned bar charts:

node chart.mjs --type histogram \
  --data '[{"value":12},{"value":18},{"value":19},{"value":24},{"value":31}]' \
  --x-field value --x-title "Response Time (ms)" --y-title "Count" \
  --bins 8 --tick-min-step-y 1 --x-label-angle -30 \
  --output hist.png

Pie / Donut Chart

# Pie
node chart.mjs --type pie --data '[{"category":"A","value":30},{"category":"B","value":70}]' \
  --category-field category --y-field value --output pie.png

# Donut (with hole)
node chart.mjs --type donut --data '[{"category":"A","value":30},{"category":"B","value":70}]' \
  --category-field category --y-field value --output donut.png

Candlestick Chart (OHLC)

node chart.mjs --type candlestick \
  --data '[{"x":"Mon","open":100,"high":110,"low":95,"close":105}]' \
  --open-field open --high-field high --low-field low --close-field close \
  --title "Stock Price" --output candle.png

Heatmap

node chart.mjs --type heatmap \
  --data '[{"x":"Mon","y":"Week1","value":5},{"x":"Tue","y":"Week1","value":8}]' \
  --color-value-field value --color-scheme viridis \
  --y-label-overlap greedy \
  --title "Activity Heatmap" --output heatmap.png

Multi-Series Line Chart

Compare multiple trends on one chart:

node chart.mjs --type line --series-field "market" \
  --data '[{"x":"Jan","y":10,"market":"A"},{"x":"Jan","y":15,"market":"B"}]' \
  --title "Comparison" --output multi.png

Stacked Bar Chart

node chart.mjs --type bar --stacked --color-field "category" \
  --data '[{"x":"Mon","y":10,"category":"Work"},{"x":"Mon","y":5,"category":"Personal"}]' \
  --title "Hours by Category" --output stacked.png

Volume Overlay (Dual Y-axis)

Price line with volume bars:

node chart.mjs --type line --volume-field volume \
  --data '[{"x":"10:00","y":100,"volume":5000},{"x":"11:00","y":105,"volume":3000}]' \
  --title "Price + Volume" --output volume.png

Sparkline (mini inline chart)

node chart.mjs --sparkline --data '[{"x":"1","y":10},{"x":"2","y":15}]' --output spark.png

Sparklines are 80x20 by default, transparent, no axes.

Options Reference

Basic Options

OptionDescriptionDefault
--typeChart type: line, bar, area, point, histogram, pie, donut, candlestick, heatmapline
--dataJSON array of data points-
--outputOutput file pathchart.png
--titleChart title-
--widthWidth in pixels600
--heightHeight in pixels300

Axis Options

OptionDescriptionDefault
--x-fieldField name for X axisx
--y-fieldField name for Y axisy
--x-titleX axis labelfield name
--y-titleY axis labelfield name
--x-typeX axis type: ordinal, temporal, quantitativeordinal
--x-domainClamp/zoom the X scale with min,max bounds for quantitative or temporal chartsauto
--x-formatTemporal X axis label format (d3-time-format, e.g. %b %d, %H:%M)auto
--x-sortX axis order: ascending, descending, or none (preserve input order)auto
--series-order CSVExplicit series/category order for multi-series and stacked legends (e.g. Critical,High,Medium)data order
--x-label-limit PXMax pixel width for X axis labels before Vega truncates themauto
--y-label-limit PXMax pixel width for Y axis labels before Vega truncates themauto
--x-ticks NTarget X-axis tick count for dense or sparse chartsauto
--y-ticks NTarget primary/left Y-axis tick count for dense or sparse chartsauto
--bins NHistogram bin count (--type histogram only)Vega auto
--tick-min-step NMinimum step between ticks on quantitative axes (great for counts / whole-number charts)Vega auto
--tick-min-step-x NMinimum step between ticks on quantitative X axes onlyVega auto
--tick-min-step-y NMinimum step between ticks on quantitative Y axes onlyVega auto
--x-label-angle NRotate X-axis labels (for dense categories / timestamps)-45
--y-label-angle NRotate Y-axis labels (useful for horizontal bars / heatmaps)0 / Vega default
--x-label-overlap MODEForce Vega X-axis overlap handling (parity, greedy, true, false) for crowded labelsVega auto
--y-label-overlap MODEForce Vega Y-axis overlap handling (parity, greedy, true, false) for crowded labelsVega auto
--y2-ticks NTarget secondary/right Y-axis tick count for dual-axis and volume chartsauto
--y-domainY scale as "min,max"auto
--y-padAdd vertical padding as a fraction of range (e.g. 0.1 = 10%)0

Visual Options

OptionDescriptionDefault
--colorLine/bar color#e63946
--darkDark mode themefalse
--svgOutput SVG instead of PNGfalse
--font-familyCSS font-family string for chart text/legend/title themingHelvetica, Arial, sans-serif
--title-alignTitle alignment: start, middle, endstart
--title-size NTitle font size override in pxauto
--subtitle-size NSubtitle font size override in pxauto
--title-weight WTitle font weight override (normal, bold, 100-900)auto
--subtitle-weight WSubtitle font weight override (normal, bold, 100-900)auto
--title-colorTitle text color overridetheme text
--subtitle-colorSubtitle text color overridetheme grid
--grid-dash A,BDash pattern for gridlines (for example 4,2)solid

Font examples: "Inter, Helvetica, Arial, sans-serif", "Georgia, serif", "JetBrains Mono, Consolas, monospace" | --no-points | Hide point markers on line charts | false | | --line-width N | Set line thickness in pixels for line charts | 2 | | --point-size N | Set point marker size for line/point charts | 60 | | --bar-radius N | Round bar corners in pixels for bar-based charts | 0 | | --color-scheme | Vega color scheme (category10, viridis, etc.) | - | | --legend-columns N | Wrap legend entries into N columns for crowded multi-series/pie charts | auto | | --legend-label-limit PX | Max pixel width for legend labels before Vega truncates them | auto |

Alert/Monitor Options

OptionDescriptionDefault
--show-changeShow +/-% change annotation at last pointfalse
--focus-changeZoom Y-axis to 2x data rangefalse
--focus-recent NShow only last N data pointsall
--show-valuesLabel min/max peak pointsfalse
--last-valueLabel the final data point valuefalse

Multi-Series/Stacked Options

OptionDescriptionDefault
--series-fieldField for multi-series line charts-
--stackedEnable stacked bar modefalse
--color-fieldField for stack/color categories-

Candlestick Options

OptionDescriptionDefault
--open-fieldOHLC open fieldopen
--high-fieldOHLC high fieldhigh
--low-fieldOHLC low fieldlow
--close-fieldOHLC close fieldclose

Pie/Donut Options

OptionDescriptionDefault
--category-fieldField for pie slice categoriesx
--donutRender as donut (with center hole)false

Heatmap Options

OptionDescriptionDefault
--color-value-fieldField for heatmap intensityvalue
--y-category-fieldY axis category fieldy

Dual-Axis Options (General)

OptionDescriptionDefault
--y2-fieldSecond Y axis field (independent right axis)-
--y2-titleTitle for second Y axisfield name
--y2-colorColor for second series#60a5fa (dark) / #2563eb (light)
--y2-typeChart type for second axis: line, bar, arealine
--y2-formatRight-axis format: percent, dollar, compact, integer, decimal4, or d3-format stringauto

Example: Revenue bars (left) + Churn area (right):

node chart.mjs \
  --data '[{"month":"Jan","revenue":12000,"churn":4.2},...]' \
  --x-field month --y-field revenue --type bar \
  --y2-field churn --y2-type area --y2-color "#60a5fa" --y2-format ".1f" \
  --y-title "Revenue ($)" --y2-title "Churn (%)" \
  --x-sort none --dark --title "Revenue vs Churn"

Volume Overlay Options (Candlestick)

OptionDescriptionDefault
--volume-fieldField for volume bars (enables dual-axis)-
--volume-colorColor for volume bars#4a5568

Formatting Options

OptionDescriptionDefault
--y-formatY axis format: percent, dollar, compact, decimal4, integer, scientific, or d3-format stringauto
--subtitleSubtitle text below chart title-
--hlineHorizontal reference line: "value" or "value,color" or "value,color,label" (repeatable)-

Annotation Options

OptionDescriptionDefault
--annotationStatic text annotation-
--annotationsJSON array of event markers-

Alert-Style Chart (recommended for monitors)

node chart.mjs --type line --data '[...]' \
  --title "Iran Strike Odds (48h)" \
  --show-change --focus-change --show-values --dark \
  --output alert.png

For recent action only:

node chart.mjs --type line --data '[hourly data...]' \
  --focus-recent 4 --show-change --focus-change --dark \
  --output recent.png

Timeline Annotations

Mark events on the chart:

node chart.mjs --type line --data '[...]' \
  --annotations '[{"x":"14:00","label":"News broke"},{"x":"16:30","label":"Press conf"}]' \
  --output annotated.png

Temporal X-Axis

For proper time series with date gaps:

node chart.mjs --type line --x-type temporal \
  --data '[{"x":"2026-01-01","y":10},{"x":"2026-01-15","y":20}]' \
  --output temporal.png

Use --x-type temporal when X values are ISO dates and you want spacing to reflect actual time gaps (not evenly spaced).

Y-Axis Formatting

Format axis values for readability:

# Dollar amounts
node chart.mjs --data '[...]' --y-format dollar --output revenue.png
# → $1,234.56

# Percentages (values as decimals 0-1)
node chart.mjs --data '[...]' --y-format percent --output rates.png
# → 45.2%

# Compact large numbers
node chart.mjs --data '[...]' --y-format compact --output users.png
# → 1.2K, 3.4M

# Crypto prices (4 decimal places)
node chart.mjs --data '[...]' --y-format decimal4 --output molt.png
# → 0.0004

# Custom d3-format string
node chart.mjs --data '[...]' --y-format ',.3f' --output custom.png

Available shortcuts: percent, dollar/usd, compact, integer, decimal2, decimal4, scientific

Chart Subtitle

Add context below the title:

node chart.mjs --title "MOLT Price" --subtitle "20,668 MOLT held" --data '[...]' --output molt.png

--subtitle works across standard charts plus pie/donut, heatmap, candlestick, stacked, multi-series, volume-overlay, and dual-axis layouts.

Theme Selection

Use --dark for dark mode. Auto-select based on time:

  • Night (20:00-07:00 local): --dark
  • Day (07:00-20:00 local): light mode (default)

Social Size Presets

Use --output-size when the chart is meant for a specific surface:

# Bluesky / OG-style landscape post
node chart.mjs --type line --data '[...]' --output-size bluesky --output bluesky-chart.png

# Instagram / Threads portrait post
node chart.mjs --type line --data '[...]' --output-size portrait --output portrait-chart.png

Available presets include twitter, discord, slack, linkedin, bluesky (bsky alias), youtube, instagram, portrait, story, thumbnail, wide, and square.

Piping Data

echo '[{"x":"A","y":1},{"x":"B","y":2}]' | node chart.mjs --output out.png

Custom Vega-Lite Spec

For advanced charts:

node chart.mjs --spec my-spec.json --output custom.png

⚠️ IMPORTANT: Always Send the Image!

After generating a chart, always send it back to the user's channel. Don't just save to a file and describe it — the whole point is the visual.

# 1. Generate the chart
node chart.mjs --type line --data '...' --output /data/clawd/tmp/my-chart.png

# 2. Send it! Use message tool with filePath:
#    action=send, target=<channel_id>, filePath=/data/clawd/tmp/my-chart.png

Tips:

  • Save to /data/clawd/tmp/ (persistent) not /tmp/ (may get cleaned)
  • Use action=send with filePath — thread-reply does NOT support file attachments
  • Include a brief caption in the message text
  • Auto-use --dark between 20:00-07:00 Israel time

*Updated: 2026-04-06 - added --y-label-angle for crowded categorical/heatmap charts and documented per-axis label rotation; version bumped to 2.6.33*

平台分布

OpenClaw

96.01%
按下载量换算109,077

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills