用 termgraph 在终端绘制柱状图
把简单的标签和数值变成彩色终端柱状图。
运行 printf 'A 10\nB 20\nC 15\n' | termgraph,绘制柱状图。
01命令
命令
$ printf 'A 10\nB 20\nC 15\n' | termgraph02作用说明
termgraph 读取空白或 CSV 输入,绘制带标签和数值的横向柱状图,可选缩放和着色。不打开表格或绘图工具就能快速可视化少量数字。
03风险
!注意: 它适合小数据集和简单比较;需要正式图表时请用 gnuplot 或 matplotlib。
04撤销
✓无需撤销——该命令不会改变持久状态。
05来源
- Official project documentation依据: termgraph renders bar charts in the terminal from plain text data or CSV.
- Project homepage依据: termgraph renders bar charts in the terminal from plain text data or CSV.
最后验证: 2026-09-22 · 分类: 开发者