Difference between revisions of "Graphical overview installation"
From Klaus' wiki
(Created page with 'Copy Graphviz and SiteGraph from klaus.ede.hih.au.dk/extensions to the local extensions directory Add these lines to LocalSettings: <source lang="php"> # To enable the Graphviz…') |
|||
Line 47: | Line 47: | ||
</sitegraph> | </sitegraph> | ||
</source> | </source> | ||
+ | |||
+ | Hint: Use ?action=purge at the end of the URL to refresh the graph immediately. |
Revision as of 20:48, 28 April 2010
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:
<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.