← Back to Skills Marketplace
lean-zhouchao

Chart Generator Zc

by lean-zhouchao · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
165
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install chart-generator-zc
Description
Data visualization tool producing SVG charts. Use when you need bar charts, line charts, pie charts, tables, sparklines, gauges,.
README (SKILL.md)

Chart Generator

数据可视化图表生成器,通过 scripts/chart.sh 生成ASCII图表或HTML文件。

为什么用这个 Skill? / Why This Skill?

  • 即开即用:一条命令直接出图,不需要安装matplotlib、echarts等复杂依赖
  • 双输出:终端ASCII图表(方便命令行查看)+ HTML文件(方便分享和嵌入)
  • 迷你趋势图:Unicode sparkline一行搞定趋势展示
  • Compared to asking AI directly: produces actual runnable chart output (ASCII art + HTML files), not just code snippets you'd need to run yourself

使用方式

脚本路径:scripts/chart.sh(相对于本skill目录)

命令一览

# ASCII 柱状图
chart.sh bar "标签1:值1,标签2:值2,标签3:值3" [--title "标题"]

# ASCII 折线图
chart.sh line "1,5,3,8,2,7" [--title "趋势"]

# ASCII 饼图(百分比条形式)
chart.sh pie "A:30,B:50,C:20" [--title "分布"]

# 格式化表格
chart.sh table "H1,H2,H3|R1C1,R1C2,R1C3|R2C1,R2C2,R2C3"

# HTML 柱状图(内联SVG,无外部依赖)
chart.sh html-bar "A:30,B:50,C:20" --output chart.html

# 迷你趋势图(Unicode块字符)
chart.sh sparkline "1,5,3,8,2,7,4,9"

# 数据看板模板(多图表组合)
chart.sh dashboard "标题"

# 进度条可视化
chart.sh progress "已完成,总数" [--title "项目进度"]

# 趋势分析(折线+变化率+统计摘要)
chart.sh trend "10,15,12,20,18,25" [--title "月度增长"]

# ASCII热力图
chart.sh heatmap "1,2,3|4,5,6|7,8,9" [--title "活跃度"]

# SVG柱状图(生成.svg文件,可浏览器打开)
chart.sh svg-bar "销售报告" "Q1:120,Q2:180,Q3:95,Q4:210" [--color blue|green|red|rainbow]

# SVG饼图(扇形+图例+百分比标签)
chart.sh svg-pie "市场份额" "苹果:35,三星:25,华为:20"

# SVG折线图(坐标轴+数据点+面积填充)
chart.sh svg-line "月度趋势" "1月:100,2月:150,3月:120"

# 帮助
chart.sh help

See also: tips.md for data visualization best practices.

数据格式

  • 键值对: "标签:数值,标签:数值" — 用于 bar, pie, html-bar
  • 纯数值: "1,5,3,8,2,7" — 用于 line, sparkline
  • 表格: "列头1,列头2|行1值1,行1值2|行2值1,行2值2" — 管道符分隔行,逗号分隔列

选项

  • --title "标题" — 图表标题(bar, line, pie)
  • --output file.html — HTML输出文件路径(html-bar)

输出示例 / Example Output

柱状图 (bar)

$ chart.sh bar "销售:85,市场:62,研发:93,运维:41" --title "部门预算(万)"

  部门预算(万)
  销售  ████████████████████░  85
  市场  ███████████████░░░░░░  62
  研发  ██████████████████████ 93
  运维  ██████████░░░░░░░░░░░  41

迷你趋势图 (sparkline)

$ chart.sh sparkline "3,7,2,8,5,9,1,6"
▃▆▁█▄█▁▅

💬 Feedback & Feature Requests: https://bytesagain.com/feedback Powered by BytesAgain | bytesagain.com

Commands

Use chart-generator help to see all available commands.

Usage Guidance
This skill appears to do what it says: generate ASCII and SVG/HTML charts locally. Before installing or running it: (1) expect it to create files (SVGs, HTML, and a history.log) under $CHART_DIR or $XDG_DATA_HOME (defaults to ~/.local/share/chart-generator); (2) it accepts CSV file paths you provide — only give it non-sensitive CSVs unless you trust the code; (3) there are minor metadata/version mismatches in the bundle (registry vs _meta.json vs SKILL.md) and a few sloppy shell idioms, so you may want to run it in a sandbox/container or review the scripts yourself; (4) if you need networked or credentialed behavior, this skill does not provide it. If you want extra caution, run chart commands on test data and inspect created files before using on production data.
Capability Analysis
Type: OpenClaw Skill Name: chart-generator-zc Version: 1.0.0 The chart-generator-zc skill bundle is a legitimate data visualization tool that generates ASCII, SVG, and HTML charts. The core logic in scripts/chart.sh and scripts/script.sh uses Python and Bash to parse user-provided data and render various chart types. The code includes basic security practices such as filename sanitization (using regex in the SVG generation logic) to prevent path traversal. No evidence of data exfiltration, malicious execution, or prompt injection was found; all file operations are consistent with the stated purpose of saving generated visualizations.
Capability Assessment
Purpose & Capability
Name/description promise SVG/ASCII charts and the provided scripts (scripts/chart.sh and scripts/script.sh) implement exactly that: ASCII charts, SVG/HTML exports, CSV import, and a history log. The tool requests no external credentials and no unexpected binaries.
Instruction Scope
SKILL.md instructs running scripts/chart.sh and describes the data formats. The runtime scripts create files (SVG/HTML) and a history log, read CSV files when asked, and respect CHART_DIR/XDG_DATA_HOME/HOME for storage. They do not call external network endpoints. This is within scope, but be aware the skill writes to the user's filesystem and reads CSV files you point it to.
Install Mechanism
No install spec — instruction-only with bundled scripts. No remote downloads or installers; lowest-risk install model.
Credentials
No required environment variables or credentials are declared. Scripts optionally honor CHART_DIR and XDG_DATA_HOME (common location vars) and use HOME for defaults. These are proportionate to a file-writing chart tool.
Persistence & Privilege
The skill is not always-enabled and can be invoked by the user. It creates a data directory (defaults to $XDG_DATA_HOME or $HOME/.local/share/chart-generator) and appends to a history.log — expected for this app but worth noting if you want to avoid persistent files.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install chart-generator-zc
  3. After installation, invoke the skill by name or use /chart-generator-zc
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of chart-generator-zc – a data visualization tool producing SVG and ASCII charts. - Generates bar, line, pie, table, sparkline, gauge, dashboard, heatmap, and progress visualizations from the command line - Supports both terminal-friendly ASCII output and standalone SVG/HTML files - Minimal dependencies and instant chart generation via a single script - Detailed usage instructions and flexible input data formats documented in SKILL.md - Sample usage and output examples provided
Metadata
Slug chart-generator-zc
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Chart Generator Zc?

Data visualization tool producing SVG charts. Use when you need bar charts, line charts, pie charts, tables, sparklines, gauges,. It is an AI Agent Skill for Claude Code / OpenClaw, with 165 downloads so far.

How do I install Chart Generator Zc?

Run "/install chart-generator-zc" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Chart Generator Zc free?

Yes, Chart Generator Zc is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Chart Generator Zc support?

Chart Generator Zc is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Chart Generator Zc?

It is built and maintained by lean-zhouchao (@lean-zhouchao); the current version is v1.0.0.

💬 Comments