graphviz画流程图2

来源:互联网 发布:淘宝联盟部分退款 编辑:程序博客网 时间:2024/06/11 09:41

1. 进入安装目录 "d:\Program Files\Graphviz 2.28\bin\dot.exe"  对应的目录 -->d:\Program Files\Graphviz 2.28\bin\

2. 输入命令: dot.exe -Tpng -o "png文件所在完整路径???.png"   "dot文件所在完整路径???.dot"

digraph G {  edge [fontname="Microsoft YaHei" color=brown, fontcolor=brown1, fontsize=10, weight=1 ];  node [shape="box", fontname="Microsoft YaHei", width="3.2" ,color = lightblue ];  {      step1 [label="预处理:20m"  center=true ];      step2 [ shape="record" label="<f0>验证数据:20m|<f1>自由采集:20'"];  step3 [label="采集数据:20m"  ];  step4 [label="统计事实数据:20m"  ];  step5 [label="统计渐变维度:20m"  ];  step6 [label="采集回单数据:20m"  ];  step7 [label="聚合统计报表:20m"  ];    }  node [shape="box", fontname="Microsoft YaHei" width="3.2"  bgcolor="white"];  {      sub_step1 [label="预处理:20m"  center=true ];      sub_step2 [ shape="record" label="<f0>验证数据:20m|<f1>自由采集:20m"];  sub_step3 [label="采集数据:20m"  ];  sub_step4 [label="统计事实数据:20m"  ];  sub_step5 [label="统计渐变维度:20m"  ];  sub_step6 [label="采集回单数据:20m"  ];  }  node [style="rounded", fontname="Microsoft YaHei" ]{      begin [label="开始时间: 00:00:00"];      end [label="结束时间: 06:00:00" ];  }  subgraph cluster_main{      label="主采集服务器:107个DB,耗时1600m";      bgcolor="mintcream";      fontname="Microsoft YaHei";      style="dashed";    step1;      step2;     step3;      step4;     step5;      step6;     step7;  }  subgraph cluster_sub{      label="珠海采集服务器:107个DB,耗时1600m";     bgcolor="mintcream";      fontname="Microsoft YaHei";      style="dashed";      sub_step1;      sub_step2;      sub_step3;      sub_step4;     sub_step5;      sub_step6; }  begin ->     step1 ->     step2:f0 ->     step3 ->     step4 ->     step5 ->     step6 ->     step7 -> end; step1 ->step2:f1;begin -> sub_step1 -> sub_step2:f0 -> sub_step3 -> sub_step4 -> sub_step5 -> sub_step6  -> end; sub_step1 -> sub_step2:f1;}  

原创粉丝点击