2828921d715e4172bfba7d9d13521e51a771fe48
[ikiwiki.git] / doc / ikiwiki / directive / graph.mdwn
1 The `graph` directive is supplied by the [[!iki plugins/graphviz desc=graphviz]] plugin.
2
3 This directive allows embedding [graphviz](http://www.graphviz.org/)
4 graphs in a page.  Example usage:
5
6         \[[!graph src="a -> b -> c; a -> c;"]]
7
8 The `graph` directive supports the following parameters:
9
10 - `src` - The graphviz source to render.
11 - `type` - The type of graph to render: `graph` or `digraph`.  Defaults to
12   `digraph`.
13 - `prog` - The graphviz program to render with: `dot`, `neato`, `fdp`, `twopi`,
14   or `circo`.  Defaults to `dot`.
15 - `height`, `width` - Limit the size of the graph to a given height and width,
16   in inches. You must specify both to limit the size; otherwise, graphviz will
17   choose a size, without any limit.
18
19 [[!meta robots="noindex, follow"]]