plugin:graphviz
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:graphviz [2017-02-13 12:49] – [FAQ] 129.247.247.240 | plugin:graphviz [2022-05-05 16:50] (current) – [Example] 47.57.142.223 | ||
---|---|---|---|
Line 31: | Line 31: | ||
===== Download and Installation ===== | ===== Download and Installation ===== | ||
- | Download | + | Search |
==== Changes ==== | ==== Changes ==== | ||
Line 98: | Line 98: | ||
</ | </ | ||
</ | </ | ||
- | |||
{{ http:// | {{ http:// | ||
- | ===== Compatibility | + | ===== how to display dot MAPs ===== |
- | Not working after upgrade to [2016-06-26a] " | + | |
- | Fabio. | + | * For UNIX users ( since assumes a PATH of / |
+ | |||
+ | Using an old version of Graphviz I fixed to display **dot** maps //(nodes that when you click on them link to a URL ie another page in your wiki or an external link.) // | ||
+ | |||
+ | This is a fragment of the render section of the syntax file ie ( I replaced my render function with this ): | ||
+ | |||
+ | <file PHP r.php> | ||
+ | /** | ||
+ | * Create output | ||
+ | */ | ||
+ | function render($mode, | ||
+ | global $conf; | ||
+ | global $gr_ext; | ||
+ | $gr_ext=' | ||
+ | $grf_ext=' | ||
+ | if($data[1] == ' | ||
+ | if ( !is_dir($conf[' | ||
+ | io_mkdir_p($conf[' | ||
+ | $hash = md5(serialize($data)); | ||
+ | $filename = $conf[' | ||
+ | $url = ml(' | ||
+ | |||
+ | // | ||
+ | // | ||
+ | |||
+ | // if already exist render | ||
+ | if ( is_readable($filename) ) { | ||
+ | // cached. | ||
+ | |||
+ | // generate the map to variable | ||
+ | $kk1 = "sed ' | ||
+ | $cmd = "echo ' | ||
+ | | ||
+ | exec( $cmd, $map); | ||
+ | // | ||
+ | $maphtml = implode(" | ||
+ | // add the target - cant do this with DOT | ||
+ | $maphtml = str_replace("< | ||
+ | |||
+ | // Include Map in the page | ||
+ | $renderer-> | ||
+ | | ||
+ | | ||
+ | |||
+ | // Link the Image below with the map above by hash | ||
+ | $renderer-> | ||
+ | |||
+ | return true; | ||
+ | } | ||
+ | |||
+ | if (!$this-> | ||
+ | |||
+ | // generate the map | ||
+ | $kk1 = "sed ' | ||
+ | $cmd = "echo ' | ||
+ | | ||
+ | exec( $cmd, $map); | ||
+ | $maphtml= implode(" | ||
+ | // add the target - cant do this with DOT | ||
+ | $maphtml=str_replace("< | ||
+ | |||
+ | // Include Map in the page | ||
+ | $renderer-> | ||
+ | | ||
+ | | ||
+ | |||
+ | // Link the Image below with the map above by hash | ||
+ | $renderer-> | ||
+ | |||
+ | } else { | ||
+ | $renderer-> | ||
+ | } | ||
+ | return true; | ||
+ | } | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | My 2 cents to this wonderful dokuwiki community that has given me so much through the years. | ||
+ | |||
+ | Regards, \\ Enrique M | ||
+ | |||
+ | Sign update: " | ||
+ | |||
+ | |||
+ | ==== Hyperlinks from Graphviz nodes ==== | ||
+ | |||
+ | If you want links from the nodes, you can use this forked version: | ||
+ | |||
+ | https:// | ||
+ | |||
+ | Hopefully the fix will be merged soon in the official version.. | ||
+ | |||
+ | Fabio | ||
+ | |||
+ | |||
+ | ===== Compatibility ===== | ||
- | ---- | ||
It seems to be compatible with " | It seems to be compatible with " | ||
Line 180: | Line 273: | ||
== Does the server need an access to Internet ? == | == Does the server need an access to Internet ? == | ||
- | Yes, it uses Google API to generate graphs. | + | Default: |
+ | However, it can be set up to point straight to a local install of graphiz. In that case no internet access is needed. | ||
== How to read external dot File? == | == How to read external dot File? == | ||
How can i render an external (autogenerated) dot file? | How can i render an external (autogenerated) dot file? | ||
+ | == How to include images in HTML-Labels? |
plugin/graphviz.1486986543.txt.gz · Last modified: 2017-02-13 12:49 by 129.247.247.240