简体中文 | English
🦋 新一代信息图可视化引擎,让文字信息栩栩如生!
AntV Infographic 是 AntV 推出的新一代声明式信息图可视化引擎,通过精心设计的信息图语法,能够快速、灵活地渲染出高质量的信息图,让信息表达更高效,让数据叙事更简单。

npm install @antv/infographic
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
`);
渲染结果如下:

使用具有高容错性的信息图语法能够实时接收 AI 流式输出并逐步渲染信息图。
let buffer = '';
for (const chunk of chunks) {
buffer += chunk;
infographic.render(buffer);
}
AntV Infographic 提供了多项能力,便于与 AI 大模型集成:
已提供 Claude marketplace,可通过 marketplace 安装,也可继续手动集成。
/plugin marketplace add https://github.com/antvis/Infographic.git
/plugin install antv-infographic-skills@antv-infographic
手动集成:
set -e
VERSION=0.2.4 # 替换为最新版本号,例如 0.2.14
BASE_URL=https://github.com/antvis/Infographic/releases/download
mkdir -p .claude/skills
curl -L --fail -o skills.zip "$BASE_URL/$VERSION/skills.zip"
unzip -q -o skills.zip -d .claude/skills
rm -f skills.zip
进入 codex
# 将 <SKILL> 替换为需要安装的 skill 名称,例如 infographic-creator
# https://github.com/antvis/Infographic/tree/main/skills/<SKILL>
$skill-installer install https://github.com/antvis/Infographic/tree/main/skills/infographic-creator
社区基于 AntV Infographic 构建的项目和产品:
💡 有使用 AntV Infographic 的项目?欢迎在 Issue #99 中分享!
如有任何建议,欢迎在 GitHub 上与我们交流!欢迎 Star ⭐ 支持我们。
本项目基于 MIT 许可开源,详见 LICENSE。
$ claude mcp add Infographic \
-- python -m otcore.mcp_server <graph>