Files
deer-flow/skills/public/chart-visualization/references/generate_spreadsheet.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

24 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_spreadsheet — 电子表格/数据透视表
## 功能概述
生成电子表格或数据透视表,用于展示结构化的表格数据。当提供 `rows``values` 字段时,渲染为数据透视表(交叉表);否则渲染为常规表格。适合展示结构化数据、跨类别比较值以及创建数据汇总。
## 输入字段
### 必填
- `data`: array<object>表格数据数组每个对象代表一行。键是列名值可以是字符串、数字、null 或 undefined。例如`[{ name: 'John', age: 30 }, { name: 'Jane', age: 25 }]`
### 可选
- `rows`: array<string>,数据透视表的行标题字段。当提供 `rows``values` 时,电子表格将渲染为数据透视表。
- `columns`: array<string>,列标题字段,用于指定列的顺序。对于常规表格,这决定列的顺序;对于数据透视表,用于列分组。
- `values`: array<string>,数据透视表的值字段。当提供 `rows``values` 时,电子表格将渲染为数据透视表。
- `theme`: string默认 `default`,可选 `default`/`dark`
- `width`: number默认 `600`
- `height`: number默认 `400`
## 使用建议
- 对于常规表格,只需提供 `data` 和可选的 `columns` 来控制列的顺序。
- 对于数据透视表(交叉表),提供 `rows` 用于行分组,`columns` 用于列分组,`values` 用于聚合的值字段。
- 确保数据中的字段名与 `rows``columns``values` 中指定的字段名一致。
## 返回结果
- 返回电子表格/数据透视表图片 URL并附 `_meta.spec` 供后续编辑。