Graphviz Diagrams for Jira has been retired and archived on the Atlassian Marketplace on December 26, 2023. Current customers and evaluators were informed of this change on September 27, 2023.
As per our earlier communication, the maintenance of the app has been stopped as of October 15, 2023. Please contact our support team if you have any opinions.
How to use Graphviz diagrams
Digraph
Scenario | Description | DOT syntax | Output |
---|---|---|---|
Organizational Chart | An organizational chart that lists the hierarchy of people from the CEO to the controller. | digraph { nodesep=1.0 // increases the separation between nodes node [color=Orange,fontname=Courier,shape=box] //All nodes will this shape and colour edge [color=Black, style=dashed] //All the lines look like this "CEO"->{"VP of Finance" "VP of Operations" "VP of Engineering"} "VP of Finance"->{"Dir. Finance" "Head of US Operations" "Head of India Operations"} "Dir. Finance"->Controller { rank=same;"Dir. Finance" "Head of US Operations" "Head of India Operations" } // Put them on the same level } | |
Cluster Sample | Single directed cluster with start to end process. | digraph { subgraph cluster_0{ label ="Process A"; node[ style =filled, color="lightgray"]; a0 -> a1 -> a2 -> a3; } subgraph cluster_1 { label ="Process B"; b0 -> b1 -> b2; } b1 -> a3; start -> a0; start -> b0; a3 -> end; b2 -> end; start [shape=Mdiamond]; end [shape=Msquare]; } | |
Graph with circles and boxes | A directed graph with circles and boxes. | digraph { size="5,5" # a 'graph' statement graph [overlap = true, fontsize = 10] # several 'node' statements node [shape = box, fontname = Helvetica] A; B; C; D; E; F node [shape = circle, fixedsize = true, width = 0.9] // sets as circles 1; 2; 3; 4; 5; 6; 7; 8 # several 'edge' statements A->1 B->2 B->3 B->4 C->A 1->D E->A 2->4 1->5 1->F E->6 4->6 5->7 6->7 3->8 } | |
Multi-colored directions | A multi-colored undirected and directed graph. | digraph { a -> b [dir=both color="red:blue"] c -> d [dir=none color="green:red;0.25:blue"] } | |
Node shapes | Lists the different shapes of the node available in the macro. | digraph { a [shape=box,color=gray,style=filled]; b [shape=polygon,sides=5] c [shape=ellipse,color=gray,style=filled]; d [shape=oval]; e [shape=circle,color=gray,style=filled]; f [shape=point]; g [shape=egg,color=gray,style=filled]; h [shape=triangle]; i [shape=plaintext, label="plaintext",color=gray,style=filled]; j [shape=plain, label="plain"]; } | |
Nodes with styles | A list of nodes with different styling options. | digraph { rankdir=LR; node [style=rounded] node1 [shape=box] node2 [fillcolor=lightblue, style="rounded,filled", shape=diamond] node3 [shape=record, label="{ a | b | c }"] node1 -> node2 -> node3; } | |
Software component | A directed graph for software components. | digraph { main -> parse -> execute; main -> init; main -> cleanup; execute -> make_string; execute -> printf init -> make_string; main -> printf; execute -> compare; } | |
Use HTML | Uses the HTML content as a dot input to render a graph. | digraph { rankdir=LR node [shape=plaintext] a [ label=< <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0"> <TR><TD ROWSPAN="3" BGCOLOR="yellow">Zookeeper</TD></TR> <TR><TD PORT="here" BGCOLOR="green">Animals</TD></TR> </TABLE>> ] b [ shape=ellipse style=filled label=< <TABLE BGCOLOR="white"> <TR><TD COLSPAN="3" BGCOLOR="lightblue">elephant</TD> <TD ROWSPAN="2" BGCOLOR="yellow" VALIGN="bottom" ALIGN="right">Giraffe</TD> </TR> <TR><TD COLSPAN="2" ROWSPAN="2"> <TABLE BGCOLOR="white"> <TR> <TD BGCOLOR="orange">tiger</TD> </TR> <TR> <TD BGCOLOR="purple">lemur</TD> </TR> <TR> <TD BGCOLOR="pink">flamingo</TD> </TR> </TABLE> </TD> <TD BGCOLOR="white">penguin</TD> </TR> <TR> <TD COLSPAN="2" BGCOLOR="white" BORDER="4" ALIGN="right" PORT="there">Zebra</TD> </TR> </TABLE>> ] c [ label=<long lines<BR/>melting ice cream<BR ALIGN="LEFT"/>maps that won't fold<BR ALIGN="RIGHT"/>> ] subgraph { rank=same b c } a:here -> b:there [dir=both arrowtail = diamond] c -> b open [shape=triangle] open -> c [label=< <TABLE> <TR><TD BGCOLOR="red" WIDTH="10"> </TD> <TD>This is a Zoo!<BR/></TD> <TD BGCOLOR="red" WIDTH="10"> </TD> </TR> </TABLE>> ] } | |
Record-based nodes | A directed graph with record-based nodes. | digraph { node [shape=record]; struct1 [label="<f0> left|<f1> middle|<f2> right"]; struct2 [label="<f0> one|<f1> two"]; struct3 [label="New Node |{ b |{c|<here> d|e}| f}| g | h"]; struct1:f1 -> struct2:f0; struct1:f2 -> struct3:here; } |
Graph
Scenario | Description | DOT syntax | Output |
---|---|---|---|
Node with working URL | A undirected graph with live URLs | graph { a [label="Hyperlink (Root)", shape=circle URL="http://www.appfire.com"]; b [shape=box, label="Hyperlink", color=red URL="http://www.appfire.com"]; a -- b -- c [color=blue]; b -- d [style=dotted]; a -- e -- f [color=green]; f [label="Leaf"]; } | |
Unidirected | A undirected graph. | graph { 1 -- 2; 3 -- 2; 4 -- 1; 5 2 -- 5 -- 4; } | |
Colored nodes graph | A undirected graph with colored nodes. | graph { rankdir="BT" bgcolor="#222222" // defaults for edges and nodes can be specified node [ color="#ffffff" fontcolor="#ffffff" ] edge [ color="#ffffff" ] 2 [fillcolor="#f22430" style=filled color="#000000" fontcolor="#000000"] 4 [fillcolor="#f22430" style=filled color="#000000" fontcolor="#000000"] 5 [fillcolor="#f22430" style=filled color="#000000" fontcolor="#000000"] 6 [fillcolor="#f22430" style=filled color="#000000" fontcolor="#000000"] 7 [fillcolor="#f22430" style=filled color="#000000" fontcolor="#000000"] 1 -- 2 1 -- 3 1 -- 5 2 -- 4 [color="#f22430"] 2 -- 6 [color="#f22430"] 3 -- 4 3 -- 7 4 -- 8 5 -- 6 [color="#f22430"] 5 -- 7 [color="#f22430"] 6 -- 8 7 -- 8 } | |
Graph with color path | A single directed graph with color paths. | graph { 1 -- 2[color=green,penwidth=2.0]; 2 -- 3; 3 -- 4[color=green,penwidth=2.0]; 4 -- 5; 5 -- 6; 1 -- 4; 2 -- 4[color=green,penwidth=2.0]; 3 -- 6[color=green,penwidth=2.0]; } |
For more scenarios, refer to More example scenarios.
Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2024 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.