Render AntV Infographic visualizations directly in your Obsidian notes using fenced code blocks. โจ
- ๐จ 200+ Built-in Templates - Process flows, timelines, hierarchies, charts, and more
- ๐ Dual Syntax Support - Use JSON configuration or AntV's declarative DSL
- ๐ผ๏ธ PDF Support - Fully compatible with Obsidian's Export to PDF feature
- ๐ Theme Support - Auto-detect or force light/dark mode
- ๐ Responsive Design - Automatic resize handling
โ๏ธ Drag to Resize - Drag the side handles to adjust a block's width; persisted per block via awidth=Nfence parameter- ๐ฏ Centering - Center a block from the toolbar, per block via
align=center, or enable "Center blocks by default" in settings - ๐ Live Reload - Refresh all infographics with a single command
You can install this plugin directly from the official Obsidian Community Plugins store:
- Open Obsidian Settings โ Community plugins.
- Click Browse and search for
Infographic(or visit the Community Plugin Page). - Click Install, then Enable.
For testing beta or development versions:
- Install BRAT from Community Plugins
- Go to Settings โ BRAT โ Add Beta Plugin
- Enter the repository URL:
https://github.com/shuuul/obsidian-infographic - BRAT will download and keep the plugin updated
- Enable Infographic from Community Plugins
Create an infographic using a fenced code block with the infographic language:
Optional fence parameters:
width=N- Fixed block width in px (e.g.```infographic width=600). You can also drag the handles on either side of a rendered block to resize it; the width is written back to the fence automatically when editing in Source mode.align=center/align=left- Horizontal alignment, overriding the "Center blocks by default" setting. Toggle from the toolbar's Center button as well.
{
"template": "list-row-simple-horizontal-arrow",
"data": {
"items": [
{ "label": "Step 1", "desc": "Start" },
{ "label": "Step 2", "desc": "In Progress" },
{ "label": "Step 3", "desc": "Complete" }
]
}
}
infographic list-row-simple-horizontal-arrow
data
items
- label Step 1
desc Start
- label Step 2
desc In Progress
- label Step 3
desc Complete
infographic sequence-timeline-rounded-rect-node
data
title Company Advantages List
desc Show core strengths and performance metrics across different dimensions
items
- label Brand Influence
value 85
desc Strong recognition and trust among target users
time 2021
icon mingcute/diamond-2-fill
illus creative-experiment
- label R&D Capability
value 90
desc Proprietary core systems with continuous innovation
time 2022
icon mingcute/code-fill
illus code-thinking
- label Market Growth
value 78
desc Rapid user base growth in the past year
time 2023
icon mingcute/wallet-4-line
illus business-analytics
- label Service Satisfaction
value 88
desc High ratings for overall service system
time 2020
icon mingcute/happy-line
illus feeling-happy
- label Data Assets
value 92
desc Complete user tagging and profiling system
time 2022
icon mingcute/user-4-line
illus mobile-photos
- label Innovation
value 83
desc New product launches exceed industry average
time 2023
icon mingcute/rocket-line
illus creativity
theme light
palette antv
infographic hierarchy-structure
data
title System Layer Architecture
desc Show modules and functional groupings across different layers
items
- label Presentation Layer
children
- label Mini Program
- label APP
- label PAD
- label Desktop Client
- label WEB
- label Application Layer
children
- label Core Module
children
- label Function 1
- label Function 2
- label Function 3
- label Function 4
- label Function 5
- label Function 6
- label Base Module
children
- label Function 1
- label Function 2
- label Function 3
- label Function 4
- label Function 5
- label Function 6
- label Other Module
children
- label Function 1
- label Function 2
- label Function 3
- label Function 4
- label Function 5
- label Function 6
- label Platform Layer
children
- label Module 1
children
- label Function 1
- label Function 2
- label Function 3
- label Function 4
- label Module 2
children
- label Function 1
- label Function 2
- label Function 3
- label Function 4
- label Module 3
children
- label Function 1
- label Function 2
- label Function 3
- label Function 4
theme light
palette antv
infographic compare-binary-horizontal-badge-card-fold
data
title Company Strengths vs Weaknesses
desc Present core strengths and areas for improvement in the market
items
- label Strengths
children
- label Strong R&D
desc Technology leadership with independent innovation
- label High Customer Retention
desc Over 60% repurchase rate, good reputation
- label Complete Service System
desc Fast after-sales response, high satisfaction
- label Weaknesses
children
- label Weak Brand Exposure
desc Insufficient marketing, awareness needs improvement
- label Limited Channel Coverage
desc Incomplete online channel layout
- label High Operating Costs
desc Labor and logistics costs above industry average
theme light
palette antv
infographic chart-bar-plain-text
data
title Annual Revenue Growth
desc Compare recent three years and current year targets (unit: 100M yuan)
items
- label 2021
value 120
desc Initial transformation, steady exploration
icon lucide/sprout
- label 2022
value 150
desc Platform optimization, significant efficiency gains
icon lucide/zap
- label 2023
value 190
desc Deep digital integration, comprehensive growth
icon lucide/brain-circuit
- label 2024
value 240
desc Expand ecosystem collaboration, aim for new highs
icon lucide/trophy
theme light
palette antv
Access settings via Settings โ Community plugins โ Infographic.
| Setting | Description | Default |
|---|---|---|
| Auto render | Automatically render in preview mode | true |
| Theme | Auto / Light / Dark | auto |
| Error behavior | show-code / show-error / hide | show-code |
Each rendered infographic shows a toolbar:
- Copy - Copy source code to clipboard
- Export - Save as SVG or PNG
- PDF Export - Compatible with Obsidian's built-in Export to PDF
This plugin is also available as an Agent Skill for creating AntV Infographic visualizations in Obsidian.
skills/obsidian-infographic/
โโโ SKILL.md # Skill definition and usage guide
โโโ reference/
โโโ infographic-creator.md # Complete syntax spec, templates, and examples
When used as a skill, AI agents can generate AntV Infographic visualizations by outputting infographic code blocks in Obsidian markdown:
infographic list-row-simple-horizontal-arrow
data
items
- label Step 1
desc Start
- label Step 2
desc In Progress
- label Step 3
desc Complete
| Category | Templates |
|---|---|
| Lists | list-row-simple-horizontal-arrow, list-row-simple-horizontal, list-column, list-grid, list-pyramid |
| Sequences | sequence-horizontal, sequence-timeline, sequence-roadmap, sequence-steps |
| Comparison | compare-binary, compare-swot |
| Hierarchy | hierarchy-tree, hierarchy-structure |
| Charts | chart-bar, chart-column, chart-line, chart-pie |
| Quadrant | quadrant-simple, quadrant-quarter |
| Relations | relation-circle, relation-dagre |
See Template Reference for complete examples.
# Install dependencies
npm install
# Development build (watch mode)
npm run dev
# Production build
npm run build
# Lint
npm run lintLicensed under the Apache License, Version 2.0. See LICENSE for details.
