antv-gpt-vis
БесплатноБез исполняемых скриптовНе проверенRecommend and generate appropriate data visualization charts using the GPT-Vis library. Supports two output modes — (1) Syntax mode, which generates Syntax or…
от antvis★ 545 звёзд на GitHubОб этом скилле
GPT-Vis Chart Visualization Skill
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.
Steps
- Intent recognition: Select the chart type based on user intent and data characteristics
- Determine output mode: Choose Syntax mode or Code mode based on context
- Generate output: Produce content in the selected mode
Supported Chart Types
| 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 |
Output Modes
Mode 1: Syntax Mode (Syntax / JSON)
Used for LLM application integration scenarios. Generates chart configurations consumed by GPTVis.render(). Supports two formats:
- Syntax format: Markdown-like indentation syntax, suitable for streaming output (renders in real time as the LLM generates tokens)
- JSON format: Standard JSON object, suitable for structured API calls
Both formats are equivalent and can be passed directly to GPTVis.render().
Mode 2: Code Mode
Used when the user needs complete runnable code. Generates output including installation instructions and full code.
GPTVis API
GPTVis is the unified entry class of the library, responsible for creating, rendering, and destroying charts.
Constructor
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 |
Methods
render(config: string | object): void
Renders a chart. Accepts two kinds of input:
- Syntax string: Text starting with
vis [type], automatically parsed into a configuration object - JSON configuration object: An object containing a
typefield - Plain text: Strings not starting with
visare rendered as the summary type
Calling render() multiple times automatically destroys the previous chart before rendering the new one.
destroy(): void
Destroys
Установить antv-gpt-vis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл antv-gpt-vis?
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.
Как установить скилл antv-gpt-vis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл antv-gpt-vis запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic