Co-Pilot / 辅助式
更新于 a month ago

infographic

Aantvis
4.0k
antvis/infographic
84
Agent 评分

💡 摘要

AntV Infographic 是一个声明式框架,用于高效创建和渲染高质量的信息图表。

🎯 适合人群

数据分析师内容创作者教育工作者市场营销专业人士寻找可视化工具的开发者

🤖 AI 吐槽:看起来很能打,但别让配置把人劝退。

安全分析低风险

风险:Low。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发);依赖锁定与供应链风险。以最小权限运行,并在生产环境启用前审计代码与依赖。

简体中文 | English

Infographic, bring words to life!

🦋 An Infographic Generation and Rendering Framework, bring words to life!

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

The rendered result looks like this:

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); }

🔧 Skills Integration

AntV Infographic provides skills to integrate with AI agents:

  • infographic-creator: Create an HTML file that renders an infographic
  • infographic-syntax-creator: Generate infographic syntax from descriptions
  • infographic-structure-creator: Generate custom structure designs
  • infographic-item-creator: Generate custom item designs
  • infographic-template-updater: (For developers) update the template library

Claude Code

We don't have a Claude marketplace entry yet, so install manually.

set -e VERSION=0.2.4 # Replace with the latest tag, e.g. 0.2.4 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

Enter codex

# Replace <SKILL> with the skill name, e.g. infographic-creator # https://github.com/antvis/Infographic/tree/main/.skills/<SKILL> $skill-installer install https://github.com/antvis/Infographic/tree/main/.skills/infographic-creator

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

五维分析
清晰度9/10
创新性8/10
实用性9/10
完整性8/10
可维护性8/10
优缺点分析

优点

  • AI友好的配置和语法
  • 200多个内置模板,快速使用
  • 高质量SVG输出
  • 可定制的主题和样式

缺点

  • 新用户可能需要学习曲线
  • 仅限于信息图表用例
  • 依赖外部库
  • 处理大数据集时可能出现性能问题

相关技能

spark-engineer

A
toolCo-Pilot / 辅助式
86/ 100

“这个技能就像大数据的瑞士军刀——只要别指望它能切穿所有噪音。”

whodb

A
toolCo-Pilot / 辅助式
84/ 100

“看起来很能打,但别让配置把人劝退。”

exa-search

A
toolCo-Pilot / 辅助式
84/ 100

“看起来很能打,但别让配置把人劝退。”

免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。

版权归原作者所有 antvis.