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, bar, pie, doughnut, radar, and polar area charts. Returns PNG images.
- License 许可
- MIT
- 最近更新
- 2026-05-17
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- chart-splat
- license
- MIT
- version
- 1.0.0
- metadata
- { "author": "workingdevshero", "version": "1.0.0", "homepage": "https://chartsplat.com", "openclaw": { "os": [ "darwin", "linux", "win32" ], "emoji": "bar-chart", "install": [ { "bins": [ "chartsplat" ], "kind": "node", "label": "Install Chart Splat CLI via npm", "package": "chartsplat-cli" } ], "homepage": "https://chartsplat.com", "requires": { "env": [ "CHARTSPLAT_API_KEY" ], "bins": [ "node", "npx" ] }, "primaryEnv": "CHARTSPLAT_API_KEY" } }
- description
- 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, bar, pie, doughnut, radar, and polar area charts. Returns PNG images.
- compatibility
- Requires Node.js and npx with network access to api.chartsplat.com
02 资源文件 4
- 参考文档_meta.json277 B
- 参考文档examples/sample-charts.json4.9 KB
- 参考文档references/api-reference.md4.1 KB
- 脚本scripts/generate-chart.js3.2 KB
03 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 |
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 <csv> |
Comma-separated labels |
-d, --data <csv> |
Comma-separated numeric values |
-t, --title <text> |
Chart title |
--label <text> |
Dataset label for legend |
-c, --color <hex> |
Background color |
-w, --width <px> |
Image width (default: 800) |
--height <px> |
Image height (default: 600) |
-o, --output <file> |
Output file path (default: chart.png) |
--config <file> |
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
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.pngin 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 |
Tips
- Always provide both
labelsanddataarrays of the same length - Use hex colors (e.g.,
#8b5cf6) for consistent styling - For pie/doughnut charts, use an array of colors for
backgroundColorto color each segment - Default dimensions (800x600) work well for most uses; increase for presentations
- The
--configflag accepts any valid Chart.js configuration for full customization
04 同仓库更多 Skills
zvukogram
Text-to-Speech via Zvukogram API with SSML support. Use when you need to generate speech from text, create podcasts, voice notifications, or work with audio. Supports speed control, stress marks, English word transcription, and audio fragment merging.
zohomail
Zoho Mail API integration with managed OAuth. Send, receive, and manage emails, folders, and labels. Use this skill when users want to send emails, read messages, manage folders, or work with email labels in Zoho Mail. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key.
zoho-recruit
Zoho Recruit API integration with managed OAuth. Manage candidates, job openings, interviews, and recruitment workflows. Use this skill when users want to read, create, update, or search recruitment data like candidates, job openings, interviews, and applications in Zoho Recruit. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key.
zoho-people
Zoho People API integration with managed OAuth. Manage employees, departments, designations, attendance, and leave. Use this skill when users want to read, create, update, or query HR data like employees, departments, designations, and forms in Zoho People. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key.
zoho-mail
Zoho Mail API integration with managed OAuth. Send, receive, and manage emails, folders, and labels. Use this skill when users want to send emails, read messages, manage folders, or work with email labels in Zoho Mail. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key.
zoho-inventory
Zoho Inventory API integration with managed OAuth. Manage items, sales orders, invoices, purchase orders, bills, contacts, and shipments. Use this skill when users want to read, create, update, or delete inventory items, sales orders, invoices, purchase orders, bills, or other inventory records in Zoho Inventory. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key.