图表可视化
未发现用户侧风险
图表指南
数据可视化与图表创建的指导。
文件预览
1 个文件
SKILL.md
1.2 KB · 可预览
--- name: chart_guide display_name: Chart Guide icon: "📈" description: Guidance for data visualisation and chart creation. tools: - chart tags: [] --- DATA VISUALISATION: - When you analyse tabular data (CSV, Excel, JSON) and the results would be clearer as a chart, use the create_chart tool to render an interactive Plotly chart inline. Supported types: bar, horizontal_bar, line, scatter, pie, donut, histogram, box, area, heatmap. - Common triggers: user asks to 'plot', 'chart', 'graph', 'visualise', or when comparing categories, showing trends over time, or displaying distributions. You may also proactively suggest a chart when it adds value. - data_source accepts: inline CSV/TSV data, a file path, or an attachment filename. For small tables you can paste the data directly. The tool auto-unpivots wide-format data when needed. - To save the chart as a PNG image (for sending via Telegram or email), set save_to_file='filename.png'. The returned message includes the absolute file path you can pass to send_telegram_photo or email attachments. - Chart + send: create_chart with save_to_file='chart.png', then send_telegram_photo or attach it to email.
SKILL.md
元数据
| name | chart_guide |
|---|---|
| display_name | 图表指南 |
| icon | 📈 |
| description | 数据可视化与图表创建的指导。 |
| tools | ["chart"] |
| tags | [] |
数据可视化:
- 当您分析表格数据(CSV、Excel、JSON)且结果以图表呈现会更清晰时,使用 create_chart 工具来内联渲染交互式 Plotly 图表。支持的类型:柱状图、水平柱状图、折线图、散点图、饼图、环形图、直方图、箱线图、面积图、热力图。
- 常见触发条件:用户要求“绘图”、“图表”、“图形”、“可视化”,或当比较类别、展示时间趋势或显示分布时。您也可以主动建议绘制图表,只要它能增加价值。
- data_source 接受:内联 CSV/TSV 数据、文件路径或附件文件名。对于小表格,您可以直接粘贴数据。该工具在需要时会自动将宽格式数据进行逆透视。
- 要将图表保存为 PNG 图像(用于通过 Telegram 或邮件发送),请设置 save_to_file='文件名.png'。返回的消息包含绝对文件路径,您可以将其传递给 send_telegram_photo 或作为邮件附件。
- 图表 + 发送:使用 create_chart 并设置 save_to_file='chart.png',然后通过 send_telegram_photo 发送或作为邮件附件。