δΈζ | English
AntV Infographic is a next-generation declarative infographic visualization engine from AntV. With unified syntax and component architecture, you can render structured data into high-quality infographics in an elegant and flexible way, making information presentation more efficient and data storytelling simpler.
- π¦ Ready to use: 100+ built-in templates, data-item components, and layouts to assemble infographics in minutes
- π¨ Themeable: Hand-drawn (rough), gradients, patterns, multiple presets, and deep customization
- π§π»βπ» Built-in editor: built-in editor for AI-generated infographics, allowing for further customization and refinement
- π§© Composable: Structures, items, and render units are fully componentized for flexible extension
- π― Declarative Configuration: Simple and clear configuration approach, ideal for AI generation, machine understanding, and automated workflows
- π€ AI-friendly: Declarative config with JSON Schema, ideal for AI generation and automated workflows
- π High-quality SVG: Default SVG output for crisp visuals and easy editing/export
npm install @antv/infographicimport { Infographic } from '@antv/infographic';
const infographic = new Infographic({
container: '#container',
width: '100%',
height: '100%',
template: 'list-row-simple-horizontal-arrow',
data: {
items: [
{ label: 'Step 1', desc: 'Start' },
{ label: 'Step 2', desc: 'In Progress' },
{ label: 'Step 3', desc: 'Complete' },
],
},
// Enable editing with the built-in editor
editable: true,
});
infographic.render();Render the infographic in the target container.
For more examples, please refer to the documentation site.
The InfographicOptions configuration item required when instantiating the Infographic class, see the information graph syntax for more information.
| Attribute | Type | Required | Description | Reference |
|---|---|---|---|---|
| container | string | HTMLElement |
N | Container, can be selector or HTMLElement. | - |
| width | number | string |
N | Width, support pixel value or percentage. | - |
| height | number | string |
N | Height, support pixel value or percentage. | - |
| padding | Padding |
N | Padding for container | Padding |
| template | string |
N | Template name | - |
| design | DesignOptions |
N | Design options | DesignOptions |
| data | Data |
Y | Data for Infographic | Data |
| theme | string |
N | Theme name | - |
| themeConfig | ThemeConfig |
N | Theme configure options | ThemeConfig |
| svg | SVGOptions |
N | Options for SVG container | SVGOptions |
| editable | boolean |
N | Whethe editable? | - |
For more details, please refer to the Configuration section.
- Submit your questions or suggestions on GitHub
- Join GitHub Discussions to communicate with the community
- Contributions are welcome! Let's improve AntV Infographic together!
If you have any suggestions, feel free to communicate with us on GitHub! Star β us to show your support.
This project is open source under the MIT license. See LICENSE for details.

