]> sipb.mit.edu Git - ikiwiki.git/blob - doc/ikiwiki/directive/graph.mdwn
Merge commit 'intrigeri/po'
[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/) graphs in a
4 page.  Example usage:
5
6         \[[!graph src="a -> b -> c; a -> c;"]]
7
8 Note that graphs will only show up in previews if your browser has
9 [[!wikipedia data: URI]] support, or if the same graph already exists on that
10 page.
11
12 The `graph` directive supports the following parameters:
13
14 - `src` - The graphviz source to render.
15 - `type` - The type of graph to render: `graph` or `digraph`.  Defaults to
16   `digraph`.
17 - `prog` - The graphviz program to render with: `dot`, `neato`, `fdp`, `twopi`,
18   or `circo`.  Defaults to `dot`.
19 - `height`, `width` - Limit the size of the graph to a given height and width,
20   in inches. You must specify both to limit the size; otherwise, graphviz will
21   choose a size, without any limit.
22
23 [[!meta robots="noindex, follow"]]