diagrams
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDiagram & Visualization Skill
图表与可视化技能
Create professional diagrams and visualizations in Markdown documents. Choose the right tool for the job, then read the detailed reference for that tool.
在Markdown文档中创建专业的图表与可视化内容。为任务选择合适的工具,然后阅读该工具的详细参考文档。
Decision Guide
决策指南
What are you trying to create?
| Need | Tool | Code Fence | Reference |
|---|---|---|---|
| Flowchart, sequence diagram, state machine, class diagram, mindmap | Mermaid | | mermaid.md |
| Dependency tree, call graph, module relationships, complex directed graphs | Graphviz | | graphviz.md |
| Bar chart, line chart, scatter plot, heatmap, data-driven visualization | Vega-Lite | | vega.md |
| UML diagrams with icons (9,500+ stencils) | PlantUML | | plantuml.md |
| Cloud architecture (AWS/Azure/GCP/K8s) | PlantUML | | plantuml.md |
| Network topology, security architecture | PlantUML | | plantuml.md |
| KPI cards, timelines, roadmaps, funnels, SWOT, org charts, pie/bar charts | Infographic | | infographic.md |
| Mind map, knowledge graph, spatial planning board | JSON Canvas | | canvas.md |
| Layered system architecture, microservices, enterprise diagrams | Architecture | Raw HTML | architecture.md |
| Editorial info cards, data highlights, knowledge summaries | Infocard | Raw HTML | infocard.md |
你想要创建什么?
| 需求 | 工具 | 代码块标识 | 参考文档 |
|---|---|---|---|
| 流程图、时序图、状态机、类图、思维导图 | Mermaid | | mermaid.md |
| 依赖树、调用图、模块关系、复杂有向图 | Graphviz | | graphviz.md |
| 柱状图、折线图、散点图、热力图、数据驱动可视化 | Vega-Lite | | vega.md |
| 带图标(9500+模板)的UML图 | PlantUML | | plantuml.md |
| 云架构(AWS/Azure/GCP/K8s) | PlantUML | | plantuml.md |
| 网络拓扑、安全架构 | PlantUML | | plantuml.md |
| KPI卡片、时间线、路线图、漏斗图、SWOT分析、组织架构图、饼图/柱状图 | Infographic | | infographic.md |
| 思维导图、知识图谱、空间规划板 | JSON Canvas | | canvas.md |
| 分层系统架构、微服务、企业级图表 | Architecture | 原生HTML | architecture.md |
| 编辑类信息卡片、数据亮点、知识摘要 | Infocard | 原生HTML | infocard.md |
Quick Selection Rules
快速选择规则
- Simple process flow? Use Mermaid
- Data with numbers? Use Vega-Lite (charts) or Infographic (visual templates)
- Software modeling with icons? Use PlantUML
- Cloud/network/security architecture? Use PlantUML with provider stencils
- Complex graph with custom layout? Use Graphviz
- Styled system architecture? Use Architecture (HTML)
- Magazine-quality content card? Use Infocard (HTML)
- Quick visual summary (KPI, timeline, funnel)? Use Infographic
- Spatial/freeform layout? Use JSON Canvas
- 简单流程? 使用Mermaid
- 带数值的数据? 使用Vega-Lite(图表)或Infographic(可视化模板)
- 带图标的软件建模? 使用PlantUML
- 云/网络/安全架构? 使用带有供应商模板的PlantUML
- 自定义布局的复杂图形? 使用Graphviz
- 风格化系统架构? 使用Architecture(HTML)
- 杂志级内容卡片? 使用Infocard(HTML)
- 快速可视化摘要(KPI、时间线、漏斗图)? 使用Infographic
- 空间/自由格式布局? 使用JSON Canvas
Workflow
工作流程
- Identify the diagram type from the decision guide above
- Read the appropriate reference file for detailed syntax and rules
- Follow the critical syntax rules exactly to avoid rendering failures
- For Architecture and Infocard: pick a layout first, then apply a style
- 根据上述决策指南确定图表类型
- 阅读对应参考文件了解详细语法与规则
- 严格遵循关键语法规则,避免渲染失败
- 对于Architecture和Infocard:先选择布局,再应用样式
Important Notes
重要注意事项
- Architecture and Infocard use raw HTML embedded directly in Markdown (no code fences)
- PlantUML diagrams always start with and end with
@startuml@enduml - Never use for any diagram type - it won't render
```text - When unsure between tools, prefer Mermaid for simplicity or PlantUML for icon-rich diagrams
- Architecture和Infocard使用原生HTML直接嵌入Markdown中(无需代码块)
- PlantUML图表始终以开头,
@startuml结尾@enduml - **切勿使用**作为任何图表类型的代码块标识——无法渲染
```text - 当不确定使用哪种工具时,优先选择简单的Mermaid或图标丰富的PlantUML