
Chart Visualization
Chart-visualization intelligently selects from 26 chart types to transform user data into visual graphics, automatically extracting parameters and generating chart images through JavaScript execution. It serves data analysts and developers who need to quickly convert structured data into appropriate visualizations by handling chart selection, parameter mapping, and image generation in a single workflow. The skill solves the problem of determining the optimal chart type for different data patterns and managing the technical complexity of generating publication-ready chart images.
- skills.sh installs
- 6.5K
- GitHub stars
- 530
- last updated
- Aug 21, 2026
Install
$ npx -y skills add antvis/chart-visualization-skills --skill chart-visualization --agent claude-codeInstalls into .claude/skills of the current project.
Files
请根据用户输入的内容,将数据可视化为图表。
步骤
- 分析用户数据和需求,选择最合适的图表类型
- 构造符合规范的 JSON 请求体
- 使用 curl 工具调用 API 生成图表图片
- 将返回的图片 URL 以 Markdown 图片格式输出
图表选择指南
根据用户的数据特征和需求,选择最合适的图表类型:
- 时间序列:用
line(趋势)或area(累计趋势);两个不同量纲用dual-axes - 比较类:用
bar(横向分类对比)或column(纵向分类对比);频率分布用histogram - 占比类:用
pie(比例构成)或treemap(层级占比) - 关系与流程:用
scatter(相关性)、sankey(流向)或venn(集合重叠) - 层级与树形:用
organization-chart或mind-map - 专用类型:
radar:多维度对比funnel:流程阶段转化liquid:百分比/进度word-cloud:文本词频boxplot/violin:统计分布network-graph:复杂节点关系fishbone-diagram:因果分析flow-diagram:流程图spreadsheet:结构化数据表或透视表
API 接口
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 图片格式输出:
支持的图表类型
Sponsors
Details
- Repository
- github.com/antvis/chart-visualization-skills
- Categories
- Backend & APIs, Data Science & ML