Question

The XWiki FAQ gives an example for XWiki 1.0 syntax:

{graphviz:type=dot}digraph G {Hello->world}{graphviz}

My XWiki is properly set up to display this. But I'm not able to translate this into XWiki 2.0 syntax. I tried this

{{graphviz type=dot}} ... {{/graphviz}}

and other variations, but the best I got was about "graphviz" not being a valid macro.

As soon as I switch back the document format to the old syntax, it works, so I assume this is not some kind of misconfiguration problem.

What's the correct syntax?

Was it helpful?

Solution

I am having the same issue.

Doesn't look like it is yet supported. Check out their Jira log: http://jira.xwiki.org/jira/browse/XWIKI-3984

OTHER TIPS

The PlantUML extension is based on Graphviz and it may be used to build dot diagrams

For more information see PlantUML DOT

Using XWiki 2.0 syntax, just insert this snippet:

{{plantuml}}  
@startdot  
digraph G {  
  Hello -> world  
}  
@enddot  
{{/plantuml}}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top