Difference between revisions of "Graphical overview installation"
From Klaus' wiki
Line 15: | Line 15: | ||
</source> | </source> | ||
− | Use this code in the wiki page to display the graph: | + | Use this code in the wiki page to display the graph over the wiki: |
<source lang="php"> | <source lang="php"> |
Latest revision as of 12:02, 6 May 2010
First ensure that graphviz is installed on the server: yum install graphviz
Copy Graphviz and SiteGraph from klaus.ede.hih.au.dk/extensions to the local extensions directory
Add these lines to LocalSettings:
# To enable the Graphviz utility - by KK 2009 11 21 include("extensions/Graphviz/Graphviz.php"); $wgGraphVizSettings->dotCommand = "/usr/bin/dot"; # To enable the SiteGraph utility - by KK 2009 11 21 require_once("$IP/extensions/Graphviz/Graphviz.php"); require_once("$IP/extensions/SiteGraph/SiteGraph.php");
Use this code in the wiki page to display the graph over the wiki:
<sitegraph type="digraph" layout="neato"> graph [ center=true, fontname="Verdana", bgcolor="transparent", truecolor="true", fontsize=12, overlap="orthoyx", splines="true", pack="true", sep="0.1", dpi=62, ratio="compress", epsilon="0.001", ]; edge [ fontsize=10, arrowsize=0.5, len=0.5 ]; node [ fontsize=12, shape="ellipse", height=0.25, width=0.25, fontcolor=blue, ]; </sitegraph>
Hint: Use ?action=purge at the end of the URL to refresh the graph immediately.