Guides chart type selection for office reports and provides matplotlib code to generate PNG charts from data. Helps avoid misleading chart types like pie charts for trends.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sunflowermm-xrk-agt-2:office-chartThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
汇报要图、趋势/对比/占比可视化、从表格生成 PNG 插入 PPT/Word。
汇报要图、趋势/对比/占比可视化、从表格生成 PNG 插入 PPT/Word。
| 关系 | 推荐 | 避免 |
|---|---|---|
| 时间趋势 | 折线 | 饼图 |
| 分类对比 | 条形(类多→横向) | 折线 |
| 占比 | 堆叠条 / treemap | 多个饼图 |
| 相关 | 散点 | 条形 |
| 单指标 | 大数字 KPI | 整图 |
import matplotlib.pyplot as plt
plt.rcParams["font.sans-serif"] = ["SimHei", "Microsoft YaHei", "DejaVu Sans"]
plt.rcParams["axes.unicode_minus"] = False
labels, values = ["Q1","Q2","Q3"], [10, 14, 18]
fig, ax = plt.subplots(figsize=(8, 4))
ax.bar(labels, values, color="#2563eb")
ax.set_title("季度销量")
for i, v in enumerate(values):
ax.text(i, v + 0.3, str(v), ha="center")
plt.tight_layout()
plt.savefig("chart.png", dpi=150)
pip install matplotlib;图片存工作区供 open_path 或嵌入 doc。
每张图附:图题 + 数据来源 + 一句解读(放邮件/PPT 备注)。
无 matplotlib → 文字描述 + Markdown 表;见 office-env-setup
npx claudepluginhub sunflowermm/xrk-agtCreates publication-quality data visualizations from query results or DataFrames using Python. Recommends optimal chart types and generates static (matplotlib/seaborn) or interactive (plotly) plots.
Guides chart type selection and generates reproducible chart code in Python (matplotlib/seaborn) or JavaScript (Chart.js) with accessible color principles and chart anatomy.
Generates accurate data-driven charts including bar, line, pie, positioning matrices, comparison tables, and TAM/SAM/SOM visuals using Python with matplotlib or plotly. Outputs PNG/SVG images for real data from analysis.