谢田波
谢田波
Published on 2024-12-25 / 13 Visits
0
0

PlantUml 语法

思维导图

@startmindmap 
+[#Orange] root node  
++[#lightgreen] some first level node   
+++[#lightblue] second level node   
++[#lightgreen] another second level node  
+++[#lightblue] another first level node 
@endmindmap

mindmap.png

时序图

@startuml
title 时序图

AAAA-[#red]->BBBB: 发起请求
BBBB->CCCC: 发起请求
activate CCCC #green
CCCC-[#0000FF]->DDDD: 发起请求
DDDD->CCCC: 返回结果
DDDD->EEEE: 发起请求
activate EEEE #blue
EEEE->EEEE: 提示结果
EEEE -> G ** : create
@enduml

sequece.png

甘特图

@startgantt
language zh
printscale weekly zoom 4
saturday are closed
sunday are closed

hide footbox
title 项目计划

<style>
ganttDiagram {
  task {
    BackGroundColor GreenYellow
    LineColor Green 
    unstarted {
      BackGroundColor Fuchsia 
      LineColor FireBrick
    }
  }
}
</style>


Project starts 2024-12-23
[项目启动] requires 3 days
-- example--
[项目调研] requires 7 days
[项目调研] starts at  [项目启动]'s end with blue dotted link
[项目调研]  happens  [项目启动]'s end
[项目设计] requires 10 days
[项目测试] requires 16 days
[项目上线] requires 30 days
[项目验收] requires 3 days
[项目调研] -> [项目设计] 
[项目设计] -> [项目测试] 
[项目测试] -[#FF00FF]-> [项目上线] 
[项目上线] -> [项目验收] 

[项目启动] is colored in Fuchsia/FireBrick
[项目调研] is colored in GreenYellow/Green

today is 30 days after start and is colored in #AAF
2025-02-23 to 2025-03-22 are colored in salmon 
@endgantt

gantt.png

# JSON Data

@startjson
{
  "firstName": "John",
  "lastName": "Smith",
  "isAlive": true,
  "age": 27,
  "address": {
    "streetAddress": "21 2nd Street",
    "city": "New York",
    "state": "NY",
    "postalCode": "10021-3100"
  },
  "phoneNumbers": [
    {
      "type": "home",
      "number": "212 555-1234"
    },
    {
      "type": "office",
      "number": "646 555-4567"
    }
  ],
  "children": [],
  "spouse": null
}
@endjson

json.png


Comment