EmbedDotGraphics

Home

Embed Dot Graphics

Allow the user to embed dot graphics definitions in the page and render them as images. The graphics definitions are embedded in HTML comments.

The parameter after GRAPH: is the filename where the image is stored and determines the type of image to generate (.gif, .jpg, .png). The image filename must be unique within the wiki site.

demo.png

This image is generated from the following source

<!--GRAPH:demo.png

digraph G { Hello->World }

-->

Images with client-side maps

If you add URLs to nodes or links, a client-side image map is generated

mapped.png

This image is generated from the following source

<!--GRAPH:mapped.png

digraph G { Home [URL="FrontPage"] ; Graphics [URL="EmbedDotGraphics"]; Home ->Graphics }

-->

You need to configure the plugin in site/scripts/CgiOptions.rb in the #initialize method

    # Uncomment if you want to add 'dot' graphics to your page (see http://www.graphviz.org)
    # The path must point to the 'dot' executable
    # enable_dot_graphics('/usr/bin/')


To download the software and read the documentation on the dot language, visit the Graphviz site, especially the dot language specification and dot users guide.