| name | chart-generator |
| description | Data visualization tool producing SVG charts. Use when you need bar charts, line charts, pie charts, tables, sparklines, gauges, or any data visualization from raw numbers. Triggers on: chart, graph, visualization, bar chart, pie chart, line chart, data plot, SVG. |
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目录)
命令一览
chart.sh bar "标签1:值1,标签2:值2,标签3:值3" [--title "标题"]
chart.sh line "1,5,3,8,2,7" [--title "趋势"]
chart.sh pie "A:30,B:50,C:20" [--title "分布"]
chart.sh table "H1,H2,H3|R1C1,R1C2,R1C3|R2C1,R2C2,R2C3"
chart.sh html-bar "A:30,B:50,C:20" --output chart.html
chart.sh sparkline "1,5,3,8,2,7,4,9"
chart.sh dashboard "标题"
chart.sh progress [--title ]
chart.sh trend [--title ]
chart.sh heatmap [--title ]
chart.sh svg-bar [--color blue|green|red|rainbow]
chart.sh svg-pie
chart.sh svg-line
chart.sh