Skip to content

antvis/Infographic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

็ฎ€ไฝ“ไธญๆ–‡ | English

Infographic, bring words to life!

๐Ÿฆ‹ An Infographic Generation and Rendering Framework, bring words to life!

antvis%2FInfographic | Trendshift

npm version build status Visitors license

AntV Infographic is AntV's next-generation declarative infographic visualization engine. With a carefully designed infographic syntax, it can quickly and flexibly render high-quality infographics, making information presentation more efficient and data storytelling simpler.

โœจ Features

  • ๐Ÿค– AI-friendly: Configuration and syntax are tuned for AI generation, provide concise prompts, and support AI streaming output and rendering
  • ๐Ÿ“ฆ Ready to use: ~200 built-in infographic templates, data-item components, and layouts to build professional infographics in minutes
  • ๐ŸŽจ Theme system: Hand-drawn, gradients, patterns, multiple preset themes, plus deep customization
  • ๐Ÿง‘๐Ÿปโ€๐Ÿ’ป Built-in editor: Includes an editor for infographics so AI-generated results can be edited further
  • ๐Ÿ“ High-quality SVG output: Renders with SVG by default to ensure visual fidelity and easy editing

๐Ÿš€ Installation

npm install @antv/infographic

๐Ÿ“ Quick Start

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
  items:
    - label: Step 1
      desc: Start
    - label: Step 2
      desc: In Progress
    - label: Step 3
      desc: Complete
`);

The rendered result looks like this:

AntV Infographic DEMO

Streaming Rendering

With a highly fault-tolerant infographic syntax you can stream AI output in real time and progressively render the infographic.

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

AntV Infographic Streaming Rendering

๐Ÿ’ฌ Community & Communication

  • 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.

๐Ÿ“„ License

This project is open source under the MIT license. See LICENSE for details.