antv-g2-chart
Use this skill whenever the user wants to create, customize, or troubleshoot G2 v5 chart visualizations. Triggers include: any mention of 'G2', 'antv g2',…
Recommend and generate appropriate data visualization charts using the GPT-Vis library. Supports two output modes — (1) Syntax mode, which generates Syntax or JSON configurations, and (2) Code mode, which generates complete runnable code. Supports 26 chart types.
$ npx -y skills add antvis/chart-visualization-skills --skill antv-gpt-vis --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/antv-gpt-visContext preview
The summary Claude sees to decide when to auto-load this skill.
Recommend and generate appropriate data visualization charts using the GPT-Vis library. Supports two output modes — (1) Syntax mode, which generates Syntax or JSON configurations, and (2) Code mode, which generates complete runnable code. Supports 26 chart types.
name: antv-gpt-vis description: Recommend and generate appropriate data visualization charts using the GPT-Vis library. Supports two output modes — (1) Syntax mode, which generates Syntax or JSON configurations, and (2) Code mode, which generates complete runnable code. Supports 26 chart types.
GPT-Vis is an AI-native visualization library designed for the LLM era. It uses a framework-agnostic architecture, supports 26 chart types, and enables LLMs to easily generate high-quality visualizations through a simple, natural syntax.
1. **Intent recognition**: Select the chart type based on user intent and data characteristics 2. **Determine output mode**: Choose Syntax mode or Code mode based on context 3. **Generate output**: Produce content in the selected mode
| type value | Use case | | ------------------ | ----------------------------------------- | | line | Time series trends | | area | Time series trends + totals | | column | Categorical data comparison | | bar | Categorical comparison (long labels) | | pie | Part-to-whole proportions | | scatter | Relationship between two variables | | dual-axes | Comparison of data at different scales | | histogram | Frequency distribution of continuous values | | boxplot | Data distribution and outliers | | violin | Data distribution density | | radar | Multi-dimensional comparison | | funnel | Process conversion rates | | waterfall | Cumulative increases and decreases | | liquid | Percentage / progress | | word-cloud | Word frequency display | | venn | Set intersection/union relationships | | treemap | Hierarchical data proportions | | sankey | Flow and direction of quantities | | flow-diagram | Process steps | | mindmap | Hierarchical knowledge organization | | indented-tree | Tree node hierarchy / directories | | network-graph | Relationships between entities | | organization-chart | Organizational hierarchy | | fishbone-diagram | Root cause analysis | | table | Tabular data display | | summary | Content summary |
Used for LLM application integration scenarios. Generates chart configurations consumed by `GPTVis.render()`. Supports two formats:
Both formats are equivalent and can be passed directly to `GPTVis.render()`.
Used when the user needs complete runnable code. Generates output including installation instructions and full code.
`GPTVis` is the unified entry class of the library, responsible for creating, rendering, and destroying charts.
new GPTVis(options: VisualizationOptions)
**VisualizationOptions:**
| Parameter | Type | Required | Default | Description | | ----------- | --------------------------------------------- | -------- | --------- | -------------------------------------------------------------- | | `container` | `string \| HTMLElement` | Yes | — | CSS selector or DOM element | | `width` | `number` | No | — | Chart width (px) | | `height` | `number` | No | — | Chart height (px) | | `theme` | `'default' \| 'light' \| 'dark' \| 'academy'` | No | `'light'` | Theme | | `wrapper` | `boolean` | No | `false` | Whether to show the outer UI container (tabs, download, copy) | | `locale` | `string` | No | `'zh-CN'` | Language of the text inside the wrapper |
Renders a chart. Accepts two kinds of input:
Calling `render()` multiple times automatically destroys the previous chart before rendering the new one.
Destroys the current chart instance and releases resources.
Directly output a JSON object conforming to the chart's TypeScript type; `GPTVis.render()` can consume it directly.
{
"type": "column",
"data": [
{ "category": "Product A", "value": 30, "group": "Online" },
{ "category": "Product B", "value": 50, "group": "Online" }
],
"title": "Product Sales Comparison",
"axisXTitle": "Product",
"axisYTitle": "Sales (10k)",
"stack": true,
"theme": "academy",
"style": {
"palette": ["#5B8FF9", "#61DDAA"]
}
}Markdown-like indentation syntax that supports streaming rendering. The f
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 visualizations. Triggers include: any mention of 'G2', 'antv g2',…
Use this skill whenever the user wants to create, customize, or troubleshoot G6 v5 graph/network visualizations. Triggers include: any mention of 'G6', 'antv…
Create beautiful infographics based on given text content. Use when users request to create infographics.
Generate structured narrative text visualizations from data using T8 Syntax. Use when users want to create data interpretation reports, summaries, or…
Use this skill whenever the user wants to create, customize, or troubleshoot X6 v3 graph editor diagrams. Triggers include: any mention of 'X6', 'antv x6',…
将数据可视化为图表。当用户需要生成柱状图、折线图、饼图、散点图、雷达图、桑基图、思维导图、流程图等图表时调用此技能,通过 curl 工具调用 AntV API 生成图表图片