# How AntV Chart Visualization Skills Choose Between Images and Code

> AntV bundles visualization instructions for coding agents. Its skills produce different artifacts, from rendered charts to G2 specifications and editable X6 diagrams.

**antvis/chart-visualization-skills** — ⛏️ Turning data into a visual language for better thinking with Skills.

- Repository: https://github.com/antvis/chart-visualization-skills
- Website: https://github.com/antvis/chart-visualization-skills
- Stars: 512 · Forks: 39
- Language: JavaScript
- License: MIT
- Published: 2026-12-02 · Updated: 2026-12-02 · Language: en
- Canonical page: https://hysenlabs.com/projects/antvis-chart-visualization-skills

## Start with the artifact the reader needs

A reporting task and a product feature can begin with the same data and require quite different deliverables. A weekly report may need one image for a slide. A dashboard may need a chart specification that a developer can edit alongside the rest of the application. AntV's repository gives a coding agent separate instructions for these jobs. The chart-visualization skill describes how to choose a chart type, extract the corresponding parameters, and produce an image. The antv-g2-chart skill describes how to generate G2 v5 code. For example, a request about weekly support volume could ask for an image to embed in a report or a G2 chart whose time field and aggregation can be reviewed in a pull request. State the expected artifact in the request so the agent has a concrete basis for choosing a skill.

## Install the collection through the agent

The README offers a marketplace route for Claude Code. Enter this in Claude Code to register the repository as a marketplace. The repository manifest identifies the marketplace as visualization-skills and lists plugins with paths to individual skill directories.

```bash
/plugin marketplace add antvis/chart-visualization-skills
```

For the multi-agent route, the README documents an invocation of the Skills installer. Run this from a shell that can run npx. It passes the AntV repository to the installer.

```bash
npx skills add antvis/chart-visualization-skills
```

For a first request, supply a small set of dated values and ask for a line chart as a G2 v5 specification. Name the date field, the value field and its unit. Review the generated code against those inputs before integrating it. A short fixture makes it easy to check whether the dates landed in the intended order and whether the value axis carries the unit from the request.

## Review G2 v5 output as application code

The G2 skill describes Spec Mode for statistical charts, with choices for scales, transforms and interactions. Its instructions also address mistakes that can arise when an agent draws on examples written for G2 v4. The README calls out deprecated chain APIs and invalid palette names. These details matter most when the code will be copied into an existing application. Check the application's G2 version and inspect the generated specification for compatibility with that version. For grouped observations, examine the data transform as carefully as the mark: stacking changes what the total height represents, while dodging separates categories into adjacent marks. A chart can render successfully and still communicate a different comparison than the one in the request. Review the encoding against a sample where the expected comparison is easy to calculate by hand.

## Choose G6 for graph views and X6 for diagram editing

G6 and X6 both work with nodes and edges, which makes the distinction easy to miss in a request for a diagram. The G6 skill targets G6 v5 and documents layouts such as force and dagre alongside graph behaviors such as zooming, selection and panning. That suits a view of dependencies or relationships where the layout is part of the presentation. The X6 skill targets X6 v3 and covers editor features including ports, serialization and drag and drop. A workflow builder that lets users connect steps at named ports calls for the editor features, even if its initial screen resembles a static dependency graph. For a G6 example, inspect the generated node and edge data before adjusting the layout. For an X6 example, examine the port definitions and serialized diagram before designing how the application saves edits.

## Check the generated code alongside the skill revision

The repository carries the MIT license, including the requirement to preserve its copyright and permission notice when redistributing copies or substantial portions. The checked package manifest reports version 0.1.6 and declares an antv executable. The Claude marketplace manifest records its own version, and the documented skills installer points to the repository. Record the repository revision when comparing results across installations so an instruction change can be distinguished from a change to the application's chart library. For teams that already know the target chart and runtime, writing a G2 specification directly from the G2 library documentation is a practical alternative. The direct approach keeps chart decisions in application code from the start. The skills route places the first draft with the agent, so the review needs to cover both what that code does and how it represents the chart data.

## Conclusion

Use AntV Chart Visualization Skills when an agent needs project-specific instructions for generating a visualization artifact. For a fixed chart with an established G2 specification, edit the specification directly. On the first generated example, verify the named fields and the target library version against the consuming application.

## FAQ

### How do I add AntV Chart Visualization Skills to Claude Code?

Use the marketplace add command from the repository README. The marketplace manifest lists the plugin names and their skill paths.

### Can AntV Chart Visualization Skills generate an image?

Yes. The chart-visualization skill is described as producing chart images. The separate antv-g2-chart skill targets G2 v5 code.

### Which skill in AntV Chart Visualization Skills targets editable diagrams?

The antv-x6-editor skill targets X6 v3 and covers ports, serialization, and drag and drop.

## Sources

- [antvis/chart-visualization-skills on GitHub](https://github.com/antvis/chart-visualization-skills)
- [Issues](https://github.com/antvis/chart-visualization-skills/issues)
- [License: MIT](https://github.com/antvis/chart-visualization-skills/blob/master/LICENSE)
- [Project website](https://github.com/antvis/chart-visualization-skills)
- [README](https://github.com/antvis/chart-visualization-skills/blob/master/README.md)

---

Hysen Labs editorial analysis, written from the project's own repository and release notes. Cite the canonical page: https://hysenlabs.com/projects/antvis-chart-visualization-skills
