Files
deer-flow/skills/public/chart-visualization/references/generate_district_map.md
JeffJiang 4d5fdcb8db Consolidates market and data analysis skills; adds chart viz (#36)
Unifies market analysis, data analysis, and consulting reporting into a comprehensive consulting-analysis skill, enabling a two-phase workflow from analysis framework design to professional report generation. Introduces a DuckDB-based data analysis utility for Excel/CSV files and a chart-visualization skill with a flexible JS interface and extensive chart type documentation. Removes the legacy market analysis skill to streamline report generation and improve extensibility for consulting and data-driven workflows.
2026-02-12 11:08:09 +08:00

28 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# generate_district_map — 行政区地图(中国)
## 功能概述
生成中国境内省/市/区/县的覆盖或热力图,可展示指标区间、类别或区域组成,适用于区域销售、政策覆盖等场景。
## 输入字段
### 必填
- `title`: string必填且≤16 字,描述地图主题。
- `data`: object必填承载行政区配置及指标信息。
- `data.name`: string必填中国境内的行政区关键词需明确到省/市/区/县。
### 可选
- `data.style.fillColor`: string自定义无数据区域的填充色。
- `data.colors`: string[],枚举或连续色带,默认提供 10 色列表。
- `data.dataType`: string枚举 `number`/`enum`,决定颜色映射方式。
- `data.dataLabel`: string指标名称`GDP`)。
- `data.dataValue`: string指标值或枚举标签。
- `data.dataValueUnit`: string指标单位`万亿`)。
- `data.showAllSubdistricts`: boolean默认 `false`,是否展示全部下级行政区。
- `data.subdistricts[]`: array<object>,用于下钻各子区域,元素至少含 `name`,可附 `dataValue``style.fillColor`
- `width`: number默认 `1600`,设置图宽。
- `height`: number默认 `1000`,设置图高。
## 使用建议
名称必须精确到行政层级,避免模糊词;若配置 `subdistricts`,需同时开启 `showAllSubdistricts`;地图只支持中国境内且依赖高德数据。
## 返回结果
- 返回地图图像 URL并在 `_meta.spec` 中保留完整输入;若配置了 `SERVICE_ID`,生成记录会同步到“我的地图”小程序。