antv-g2-chart
Use this skill whenever the user wants to create, customize, or troubleshoot G2 v5 chart…
将数据可视化为图表。当用户需要生成柱状图、折线图、饼图、散点图、雷达图、桑基图、思维导图、流程图等图表时调用此技能,通过 curl 工具调用 AntV API 生成图表图片
$ npx -y skills add antvis/chart-visualization-skills --skill chart-visualization --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/chart-visualizationContext preview
The summary Claude sees to decide when to auto-load this skill.
将数据可视化为图表。当用户需要生成柱状图、折线图、饼图、散点图、雷达图、桑基图、思维导图、流程图等图表时调用此技能,通过 curl 工具调用 AntV API 生成图表图片
name: chart-visualization description: 将数据可视化为图表。当用户需要生成柱状图、折线图、饼图、散点图、雷达图、桑基图、思维导图、流程图等图表时调用此技能,通过 curl 工具调用 AntV API 生成图表图片
请根据用户输入的内容,将数据可视化为图表。
1. 分析用户数据和需求,选择最合适的图表类型 2. 构造符合规范的 JSON 请求体 3. 使用 curl 工具调用 API 生成图表图片 4. 将返回的图片 URL 以 Markdown 图片格式输出
根据用户的数据特征和需求,选择最合适的图表类型:
POST https://antv-studio.alipay.com/api/gpt-vis
请求体为 JSON,必须包含 `type` 和 `source: "chart-visualization-skills"` 字段。
示例:
curl -X POST https://antv-studio.alipay.com/api/gpt-vis \
-H "Content-Type: application/json" \
-d '{"type":"line","source":"chart-visualization-skills","data":[{"time":"2025-01","value":100}],"title":"示例图表"}'返回示例:
{"success":true,"resultObj":"https://..."}将 `resultObj` 中的 URL 以 Markdown 图片格式输出:``
| 分类 | 图表类型 | |------|---------| | 比较类 | 条形图(bar)、柱状图(column)、瀑布图(waterfall)、双轴图(dual-axes) | | 趋势类 | 面积图(area)、折线图(line)、散点图(scatter) | | 分布类 | 箱线图(boxplot)、直方图(histogram)、小提琴图(violin)、漏斗图(funnel) | | 占比类 | 饼图(pie)、水波图(liquid)、词云(word-cloud) | | 层级类 | 组织架构图(organization-chart)、思维导图(mind-map)、矩形树图(treemap)、桑基图(sankey) | | 关系类 | 关系图(network-graph)、韦恩图(venn) | | 流程类 | 流程图(flow-diagram)、鱼骨图(fishbone-diagram) | | 多维类 | 雷达图(radar) | | 表格类 | 表格/透视表(spreadsheet) |
| 参数 | 类型 | 默认值 | 说明 | |------|------|--------|------| | theme | string | "default" | 主题:"default" / "academy" / "dark" | | width | number | 600 | 图表宽度 | | height | number | 400 | 图表高度 | | title | string | "" | 图表标题 | | style.texture | string | "default" | 纹理:"default" / "rough"(手绘风格) |
带坐标轴的图表还支持:axisXTitle、axisYTitle。
Turning data into a visual language for better thinking. AntV , initiated by Ant Group and open-sourced starting in 2017, reimagines data visualization by embedding the theory of graphical grammar into the JavaScript language.
Repo: antvis/chart-visualization-skills
Use this skill whenever the user wants to create, customize, or troubleshoot G2 v5 chart…
Use this skill whenever the user wants to create, customize, or troubleshoot G6 v5…
Recommend and generate appropriate data visualization charts using the GPT-Vis library.…
Create beautiful infographics based on given text content. Use when users request to create…
Generate structured narrative text visualizations from data using T8 Syntax. Use when users…
Use this skill whenever the user wants to create, customize, or troubleshoot X6 v3 graph…