Graphviz for dynamic generation of diagrams


Graphviz logo

This is a plugin that allows the dynamic generation of diagrams by Graphviz programs within wiki pages and ticket descriptions. Graphviz is open source graph visualization software library, which itself is Eclipse licensed. Graphviz works by interpreting a textual description of the nodes and its connections.

The text of a wiki page can contain the source text for Graphviz and the web browser will show the resulting image. For example, add the following lines to a wiki page:

digraph G {Hello->World->Graphviz->Rules}

and that would produce an image as follows:

Sample outout from the graphviz plugin, produced with graphviz-2.20.3 with pangocairo support

Note that you can insert TracLinks like this:

  digraph G {
    rankdir = "LR"
    GraphvizPlugin [ URL=GraphvizPlugin ]
    Trac [ 
    GraphvizPlugin -> Trac

This produces an image like this, but with clickable nodes (note that nodes aren't actually clickable in this example):

second example, this time with colour and TracLinks, also produced with graphviz-2.20.3 on Linux

More examples at:

Bugs/Feature Requests

Existing bugs and feature requests for GraphvizPlugin are here.

If you have any issues, create a new ticket.

When creating a new ticket, be sure to mention which version of Trac and which version of the plugin you are using. If the version number ends with dev, then please also specify the changeset number that corresponds to the version you are using.


68 / 89


23 / 32


1 / 1


Or you can download the zipped source from here. Note that this contains everything regarding the Graphviz plugin including tagged releases and branches.

The plugin is also available on PyPI.


You can check out GraphvizPlugin from here using Subversion, or browse the source with Trac.


  1. A prerequisite for installation are the programs from
  2. Install
    • By hand:
      1. See graphvizplugin/trunk/README.rst for details on installing the plugin for Trac 1.3 and up
      2. See graphvizplugin/branches/1.2/README.txt for details on installing the plugin for Trac 1.0 and up
      3. See graphvizplugin/tags/0.11-0.7.5/README.txt for details on installing the plugin on Trac 0.11 and Trac 0.12.
    • Using easy_install (for Trac 1.3+)
      [sudo] easy_install
    • Using easy_install (for Trac 1.0 and 1.2):
      [sudo] easy_install
    • Using easy_install (for Trac 0.11 and 0.12):
      [sudo] easy_install
      • Note: sudo is optional case you already have enough authorization to modify your server.
  3. Restart your web server (this example command line for Apache on Ubuntu):
    [sudo] /etc/init.d/apache2 restart
  4. Enable the plugin:
    • by updating your trac.ini with this:
      graphviz.* = enabled
    • or accessing your Admin panel ( ..admin/general/plugins ).
  5. Configure your environment by modifying your trac.ini file.

You may also need to install the python-pygraphviz package.

Recent Changes

17908 by rjollos on 2020-12-04 01:32:13
Fix metadata and version numbers
17904 by rjollos on 2020-12-04 00:45:19
Make plugin name on branches same as trunk
17775 by rjollos on 2020-05-28 16:29:15
TracGraphviz Log at INFO rather than WARN

Refs #13829.



Author: pkropf
Maintainer: Christian Boos
Contributors: cboos

Last modified 10 months ago Last modified on Feb 15, 2021, 5:25:13 PM

Attachments (5)

Download all attachments as: .zip