# AntV Infographic

> A declarative infographic engine whose syntax is tuned for models to stream

- Category: App UIs & Builders / Generative UI SDKs
- Language: TypeScript
- Licence: MIT
- Repository: https://github.com/antvis/Infographic
- Website: https://infographic.antv.vision
- Canonical page: https://ai-tldr.dev/tools/antv-infographic/

## In short

AntV Infographic is AntV's declarative infographic visualisation engine. Instead of hand-placing shapes, you write a short indentation-based document that names a template and supplies the data, and the engine renders a finished infographic from it. It sits in the Generative UI SDKs category of the App UIs & Builders tools and is open-source, written in TypeScript and licensed MIT.

## Overview

AntV Infographic is AntV's declarative infographic visualisation engine. Instead of hand-placing shapes, you write a short indentation-based document that names a template and supplies the data, and the engine renders a finished infographic from it. The syntax was designed to be written by a model as much as by a person: it is concise enough to fit in a prompt and deliberately fault-tolerant.

That fault tolerance is what makes it a generative-UI component rather than a chart library. Because a partial document still parses, you can append an LLM's output chunk by chunk and re-render on every chunk, so the infographic builds itself in front of the user as the model writes it. Around 200 built-in templates, data-item components and layouts cover the common shapes, and a theme system supplies hand-drawn, gradient and pattern presets before you start customising.

Output is SVG by default, which keeps the result crisp and editable rather than baked into pixels, and the package ships a built-in editor so a user can adjust whatever the model produced. AntV also publishes a set of agent skills — infographic-creator, infographic-syntax-creator, infographic-structure-creator and infographic-item-creator — that teach a coding agent the syntax, installable from a Claude Code plugin marketplace.

## What it does

- Declarative, indentation-based infographic syntax designed to be generated by a model
- Highly fault-tolerant parsing, so a streaming LLM response can be re-rendered on every chunk
- ~200 built-in infographic templates, data-item components and layouts
- Theme system with hand-drawn, gradient and pattern presets plus deep customisation
- A built-in editor so AI-generated infographics can be edited afterwards
- SVG rendering by default for visual fidelity and downstream editing

## Getting started

Infographic ships as the @antv/infographic npm package. You create an instance bound to a container element and call render with an infographic document.

1. Install the package

```bash
npm install @antv/infographic
```

2. Render your first infographic

   Construct an Infographic bound to a container, then pass a document naming a template and its data. Setting editable: true turns on the built-in editor.

```ts
import { Infographic } from '@antv/infographic';

const infographic = new Infographic({
  container: '#container',
  width: '100%',
  height: '100%',
  editable: true,
});

infographic.render(`
infographic list-row-simple-horizontal-arrow
data
  lists
    - label Step 1
      desc Start
    - label Step 2
      desc In Progress
    - label Step 3
      desc Complete
`);
```

3. Stream a model's output into it

   Because a partial document still parses, you can accumulate chunks from an LLM and re-render each time to get progressive rendering.

```ts
let buffer = '';
for (const chunk of chunks) {
  buffer += chunk;
  infographic.render(buffer);
}
```

4. Install the agent skills

   AntV publishes skills that teach a coding agent the syntax and the structure/item design system. They are available from a Claude Code plugin marketplace.

```text
/plugin marketplace add https://github.com/antvis/Infographic.git
/plugin install antv-infographic-skills@antv-infographic
```

## When to use it

- Reach for it when a chat product should answer with a rendered infographic instead of a wall of bullet points
- Reach for it when you want the visual to appear progressively as the model streams, rather than after the response completes
- Reach for it when generated visuals need to stay editable — SVG output plus a built-in editor lets a user fix what the model got wrong
- Reach for it to give a coding agent a constrained visual vocabulary, so it produces a consistent deck of infographics rather than ad-hoc SVG
