In an attempt to improve PlantUML documentation...
Wiki Toc Recent changes View page history Add new chapter Reorder page Raw
![]() |
![]() |
|
The context (of VizJs)PlantUML uses Graphviz/DOT to compute node positionning for every UML diagrams (except Sequence Diagrams and Activity Beta Diagrams). The fact that DOT computes automatically the position of node is a key feature, and algorithms implemented in DOT usually give very good result. However, there are some drawbacks of using DOT : the computation is done by an external program (dot.exe on Windows, dot on linux), and that means that :
|
|
RunningThis means that it is possible to use PlantUML without installing GraphViz (which can be useful when you do not have administration right for example). To do so, in addition to plantuml.jar, you must have:
GRAPHVIZ_DOT environment variable value to vizjs
(or through the command line with -D flag or -graphvizdot flag).
Then, you can double-check your configuration by running the usual:
|
|
LimitationsNote that this is only working with Java 8 (because of J2V8). For complex diagrams (especially with labels on arrow), the solution is not working very well. An issue has been opened on viz.js side (see Error when generating graph). However, in that case, PlantUML falls back to some degrated solution. |