with one click
office-chart
图表选型、matplotlib 出图、汇报插图;避免错误图表类型
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
图表选型、matplotlib 出图、汇报插图;避免错误图表类型
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
编写或审查 core/*/www 静态页、校园 WebView 兼容、HttpResponse 前端解包时使用。浏览器环境 ≠ Node 26。含普通静态与前端工程(sign.json)挂载。
当你需要开发/排查 HTTP 抓取、SSRF、Playwright 受控浏览器、本地字体增强截图,或判断 web_fetch 与 browser 工作流如何选型时使用。
当你需要从“应用视角”看 XRK-AGT(启动流程、Web 控制台、前后端协作、典型技术栈组合)时使用。
当你需要开发或排查 HTTP API(core/*/http/*.js)、理解 HttpApi 基类、HttpApiLoader、业务层约定时使用。
编写或审查 core/*/www 静态页、校园 WebView 兼容、HttpResponse 前端解包时使用。浏览器环境 ≠ Node 26。
编写或审查 core/src 代码时的写法与性能规范(全局裸名、状态、I/O、异步、HTTP)。改 Core 前必读。
| name | office-chart |
| description | 图表选型、matplotlib 出图、汇报插图;避免错误图表类型 |
汇报要图、趋势/对比/占比可视化、从表格生成 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