PlantUML绘制决策树图

可以用分支图替代,加了个配色

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
@startuml
skinparam ActivityDiamondBackgroundColor greenyellow
switch (查询场景)
case (OLTP)
: MySQL;
case (OLAP)
if (实时要求高) then ()
: 同步至\nDoris\n在线SQL查询;
else ()
: 同步至Hive\nHive或Presto查询;
endif
endswitch
@enduml
@startuml skinparam ActivityDiamondBackgroundColor greenyellow switch (查询场景) case (OLTP) : MySQL; case (OLAP) if (实时要求高) then (是) : 同步至\nDoris\n在线SQL查询; else (否) : 同步至Hive\nHive或Presto查询; endif endswitch @enduml
@startuml
skinparam ActivityDiamondBackgroundColor greenyellow
switch (查询场景)
  case (OLTP)
    : MySQL;
  case (OLAP)
    if (实时要求高) then (是)
      : 同步至\nDoris\n在线SQL查询;
    else (否)
      : 同步至Hive\nHive或Presto查询;
    endif
endswitch
@enduml

效果下图:

Leave a Reply

Your email address will not be published. Required fields are marked *