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-code

Installs into .claude/skills of the current project.

Files

请根据用户输入的内容,将数据可视化为图表。

步骤

  1. 分析用户数据和需求,选择最合适的图表类型
  2. 构造符合规范的 JSON 请求体
  3. 使用 curl 工具调用 API 生成图表图片
  4. 将返回的图片 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 图片格式输出:![图表](URL)

支持的图表类型

Sponsors

Details

Repository
github.com/antvis/chart-visualization-skills
Categories
Backend & APIs, Data Science & ML

More from antvis/chart-visualization-skills

All 8
1aws avatarsetting-up-cloudtrail-multi-regionaws/agent-toolkit-for-awsEnables a multi-region AWS CloudTrail trail with S3 log storage, CloudWatch Logs integration, and CloudWatch Logs Insights queries for security monitoring and c6.5Kskills.sh installs
2wondelai avatarsoftware-design-philosophywondelai/skillsManage software complexity through deep modules, information hiding, and strategic programming. Use when the user mentions "module design", "API too complex", "6.4Kskills.sh installs
3jeffallan avatarjavascript-projeffallan/claude-skillsWrites, debugs, and refactors JavaScript code using modern ES2023+ features, async/await patterns, ESM module systems, and Node.js APIs. Use when building vanil6.4Kskills.sh installs
4testdino-hq avatarplaywright-skilltestdino-hq/playwright-skillBattle-tested Playwright patterns for writing, debugging, and scaling reliable test suites. Use when you need guidance for E2E, API, component, visual, accessib6.2Kskills.sh installs
5jamditis avatarweb-scrapingjamditis/claude-skills-journalismAuthorized web content extraction with trust-boundary controls, scraping cascades, poison-pill detection, browser rendering, observed API analysis, and social-m6.2Kskills.sh installs
6mongodb avatarmongodb-search-and-aimongodb/agent-skillsGuides MongoDB users through implementing and optimizing Atlas Search (full-text), Vector Search (semantic), and Hybrid Search solutions. Use this skill when us6.2Kskills.sh installs