Skip to main content

chart

根据当前数据选择并生成合适的业务图表(visualization 可视化)

来源信息

仓库
Zafer-Liu/Data-Analysis-Agent
最近来源活动
2026年10月24日 14:41
检测到的 SKILL.md 语言
多语言混合
星标
2,617
Forks
233

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
chart
description
根据当前数据选择并生成合适的业务图表(visualization 可视化)
icon
📊
tags
["mode-business","mode-ml","mode-empirical","visualization"]
allowedTools
["get_schema","query_data","select_chart","ask_user","generate_chart"]
# 图表分析 先检查字段、口径和数据量,再查询绘图所需的最小数据集。根据比较、趋势、分布、关系或构成目标选择图形;标题、坐标轴和单位必须明确。若用户未指定图形,说明选择理由并生成最合适的一种。 ## Tool routing 1. Use `get_schema` to inspect available tables and fields. 2. Use `query_data` to verify the minimum data needed for the chart and avoid guessing column names. 3. Use `select_chart` when the user intent does not already determine a chart type. 4. If `select_chart` has no valid candidate, use `ask_user` to clarify the visualization goal; do not call `generate_chart` directly. 5. Use `generate_chart` with the selected chart id and explicit field mapping. ## Implementation reference - Tool entries: `agent/tools/business/data.py::_tool_select_chart`, `agent/tools/business/data.py::_tool_generate_chart` - Chart implementation: `Function/Charts_generation/chart_generate.py` - Chart catalog: `Function/Charts_generation/charts/`
在 GitHub 查看