wiki:GraphvizPlugin

Graphviz for dynamic generation of diagrams

Description

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:

{{{
#!graphviz
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:

{{{
#!graphviz
  digraph G {
    rankdir = "LR"
    GraphvizPlugin [ URL=GraphvizPlugin ]
    Trac [ 
      URL="http://trac.edgewall.org/"   
      fontcolor=red
    ]
    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: http://www.graphviz.org/Gallery.php

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 corresponding to the version you are using.

defect

59 / 85

enhancement

21 / 31

task

1 / 2

Download

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

For older versions, the 0.10 directory contains the latest released version of the code for Trac 0.10 and the 0.11 directory contains the latest code for Trac 0.11.

  • download latest stable version (0.7.5) for Trac 0.11.
  • download latest version for Trac 0.10.

That version has some trouble with rsvg support for creating anti-aliased images.

The upcoming versions contain a few related fixes:

  • download latest unstable version for Trac 0.11 and later.
  • download latest unstable version for Trac 1.0.

If you want to have anti-aliased images, it might be a better option anyway to get and build a recent version of Graphviz tools. The recent versions support anti-aliasing directly, through pangocairo support.

Source

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

Installation

  1. A prerequisite for installation are the programs from http://www.graphviz.org.
  2. Install
  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:
      [components]
      ...
      graphviz.* = enabled
      ...
      
    • or accessing your Admin panel ( ..admin/general/plugins ).
  5. Configure your environment by modifying your trac.ini file.

Recent Changes

16177 by cboos on 2017-01-12 10:36:25
GraphViz trunk is now compatible with Trac 1.3dev

It should still work with Trac 1.2 though for now, but if you have trouble,
go with the 1.2 maintenance branch.

16176 by cboos on 2017-01-12 10:33:30
Create maintenance branch for 1.2, if ever needed (trunk will go Trac 1.3dev)
15729 by rjollos on 2016-08-23 01:28:12
1.0.0.8: Tag version 1.0.0.8 and bump trunk to 1.0.0.9dev

Fixes #12846.

(more)

Author/Contributors

Author: pkropf
Maintainer: Christian Boos
Contributors: cboos

Last modified 2 months ago Last modified on Apr 13, 2017, 11:38:03 AM

Attachments (5)

Download all attachments as: .zip