← 返回 Skills 市场
bobbyg603

Chart Splat

作者 Bobby Galli · GitHub ↗ · v1.1.0
darwinlinuxwin32 ✓ 安全检测通过
636
总下载
1
收藏
5
当前安装
2
版本数
在 OpenClaw 中安装
/install chart-splat
功能描述
Generate beautiful charts via the Chart Splat API. Use when the user asks to create, generate, or visualize data as charts, graphs, or plots. Supports line,...
使用说明 (SKILL.md)

Chart Splat

Generate beautiful charts from data using the Chart Splat API. Charts are rendered server-side with Chart.js and returned as PNG images.

Supported Chart Types

Type Best For
line Trends over time
bar Comparing categories
pie Parts of a whole
doughnut Parts of a whole (with center space)
radar Multivariate comparison
polarArea Comparing categories with radial layout
candlestick Financial/crypto OHLC price data
ohlc Financial/crypto OHLC price data (bar variant)

Method 1: CLI (Preferred)

Use the chartsplat CLI via npx. No install required.

npx -y chartsplat-cli bar \
  --labels "Q1,Q2,Q3,Q4" \
  --data "50,75,60,90" \
  --title "Quarterly Revenue" \
  --color "#8b5cf6" \
  -o chart.png

CLI Options

Flag Description
-l, --labels \x3Ccsv> Comma-separated labels
-d, --data \x3Ccsv> Comma-separated numeric values
-t, --title \x3Ctext> Chart title
--label \x3Ctext> Dataset label for legend
-c, --color \x3Chex> Background color
-w, --width \x3Cpx> Image width (default: 800)
--height \x3Cpx> Image height (default: 600)
-o, --output \x3Cfile> Output file path (default: chart.png)
--config \x3Cfile> JSON config file for complex charts

CLI Chart Commands

npx -y chartsplat-cli line -l "Mon,Tue,Wed,Thu,Fri" -d "100,200,150,300,250" -o line.png
npx -y chartsplat-cli bar -l "A,B,C" -d "10,20,30" -o bar.png
npx -y chartsplat-cli pie -l "Red,Blue,Green" -d "30,50,20" -o pie.png
npx -y chartsplat-cli doughnut -l "Yes,No,Maybe" -d "60,25,15" -o doughnut.png
npx -y chartsplat-cli radar -l "Speed,Power,Range,Durability,Precision" -d "80,90,70,85,95" -o radar.png
npx -y chartsplat-cli polararea -l "N,E,S,W" -d "40,30,50,20" -o polar.png
npx -y chartsplat-cli candlestick --config ohlc.json -o chart.png

Candlestick Charts

Candlestick and OHLC charts require a JSON config file since the data format is more complex than a simple CSV list. Use --config to provide a file with OHLC data points.

npx -y chartsplat-cli candlestick --config ohlc.json -o candlestick.png

Config format (ohlc.json):

{
  "type": "candlestick",
  "data": {
    "datasets": [{
      "label": "VVV Price",
      "data": [
        { "x": 1740441600000, "o": 4.23, "h": 4.80, "l": 4.10, "c": 4.45 },
        { "x": 1740528000000, "o": 4.45, "h": 5.50, "l": 4.30, "c": 5.34 },
        { "x": 1740614400000, "o": 5.34, "h": 6.20, "l": 5.10, "c": 5.97 }
      ]
    }]
  }
}

Each OHLC data point requires: x (numeric timestamp in ms, or a date string like "2025-02-25"), o (open), h (high), l (low), c (close).

Complex Charts via Config File

For multi-dataset or customized charts, write a JSON config file then pass it to the CLI:

npx -y chartsplat-cli bar --config chart-config.json -o chart.png

See examples/sample-charts.json for config file examples and references/api-reference.md for the full config schema.

Method 2: Helper Script

Use the bundled script for quick generation without installing the CLI:

node scripts/generate-chart.js bar "Q1,Q2,Q3,Q4" "50,75,60,90" "Revenue" chart.png

Or with a config file:

node scripts/generate-chart.js --config chart-config.json -o chart.png

Output Handling

  • Charts are saved as PNG files to the specified output path
  • Default output is chart.png in the current directory
  • For messaging platforms (Discord, Slack), return the file path: MEDIA: /path/to/chart.png
  • The CLI and helper script handle base64 decoding automatically

Error Handling

Error Cause Fix
API key required Missing CHARTSPLAT_API_KEY Set the env var in agent config
Invalid API key Wrong or revoked key Generate a new key at chartsplat.com/dashboard
Rate limit exceeded Monthly quota reached Upgrade plan or wait for reset
Invalid chart configuration Bad request payload Check that data.labels and data.datasets are present (candlestick/ohlc only require data.datasets)

Tips

  • Always provide both labels and data arrays of the same length
  • Use hex colors (e.g., #8b5cf6) for consistent styling
  • For pie/doughnut charts, use an array of colors for backgroundColor to color each segment
  • Default dimensions (800x600) work well for most uses; increase for presentations
  • The --config flag accepts any valid Chart.js configuration for full customization
安全使用建议
This skill appears to do what it says: it posts chart configs to api.chartsplat.com and returns PNG images. Before installing, verify the npm package (chartsplat-cli) publisher and source to ensure it is the legitimate Chart Splat CLI. Store CHARTSPLAT_API_KEY securely and only provide a key scoped/rotated for this use. Be aware of two small inconsistencies: (1) positional mode of the bundled script only accepts a limited set of types (candlestick/ohlc require using --config), and (2) the script supports an optional CHARTSPLAT_API_URL env var not declared in the skill metadata—if you need to enforce endpoint restrictions, confirm that value before running. If you will send sensitive data, confirm the service's privacy policy and that the API key has appropriate scope and rate limits.
功能分析
Type: OpenClaw Skill Name: chart-splat Version: 1.1.0 The chart-splat skill bundle is a legitimate tool for generating charts via a third-party API (api.chartsplat.com). The core logic in scripts/generate-chart.js and the instructions in SKILL.md are consistent with the stated purpose, using standard Node.js practices to send data to the API and save the resulting PNG images locally. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found.
能力评估
Purpose & Capability
Name/description (Chart Splat) match the declared needs: Node/npx, the chartsplat CLI package, and a single API key (CHARTSPLAT_API_KEY). The included helper script and API docs all target api.chartsplat.com, which is coherent with the stated purpose.
Instruction Scope
SKILL.md and examples document both simple positional chart generation and complex charts via a JSON config; the helper script supports both modes. Minor inconsistency: the helper script's VALID_TYPES list excludes 'candlestick' and 'ohlc' for positional mode (so those types require --config), but the SKILL.md presents candlestick/ohlc as generally supported. The script also reads an optional CHARTSPLAT_API_URL override (process.env.CHARTSPLAT_API_URL) which is not declared in requires.env.
Install Mechanism
Install is via an npm package (chartsplat-cli), which is an expected, traceable mechanism for a Node CLI. No arbitrary download URLs or archive extraction are used in the install spec.
Credentials
Only one secret is required (CHARTSPLAT_API_KEY), which matches the API-driven purpose. Minor mismatch: the helper script additionally reads CHARTSPLAT_API_URL as an optional override but that env var is not declared in the metadata.
Persistence & Privilege
The skill does not request always:true or any elevated persistent presence. It uses the platform's normal autonomous invocation defaults; no modifications to other skills or system-wide configuration are indicated.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install chart-splat
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /chart-splat 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Add candlestick/OHLC chart support
v1.0.0
- Initial release of chart-splat. - Generate line, bar, pie, doughnut, radar, and polar area charts using the Chart Splat API. - Supports both CLI (via npx) and helper script methods for chart creation. - Charts are rendered server-side and returned as PNG images. - Output, error handling, and configuration options documented for easy usage.
元数据
Slug chart-splat
版本 1.1.0
许可证
累计安装 5
当前安装数 5
历史版本数 2
常见问题

Chart Splat 是什么?

Generate beautiful charts via the Chart Splat API. Use when the user asks to create, generate, or visualize data as charts, graphs, or plots. Supports line,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 636 次。

如何安装 Chart Splat?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install chart-splat」即可一键安装,无需额外配置。

Chart Splat 是免费的吗?

是的,Chart Splat 完全免费(开源免费),可自由下载、安装和使用。

Chart Splat 支持哪些平台?

Chart Splat 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux, win32)。

谁开发了 Chart Splat?

由 Bobby Galli(@bobbyg603)开发并维护,当前版本 v1.1.0。

💬 留言讨论