This is a package of the Graphviz macros developed by Atlassian that have been available for a long time. Previous to the availability of this package, the plugin had to be built from the distribution. The package also includes the Graph-from-table Macro that was previously packaged in the obsolete Scripting and External Content Macros.
Copied in the additional instructions necessary for the plugin code to locate th...
Copied in the additional instructions necessary for the plugin code to locate the Graphviz executable - see information on this page. Sorry about that.
Hi,
Is there documentation available on the other macros shown for t...
Hi,
Is there documentation available on the other macros shown for this plugin (diagraph, graph..). Graphviz documentation is general on DOT. I am looking for the macro usage (parameters) document.
No, that is missing. There are not many parameters, most of the difference has ...
No, that is missing. There are not many parameters, most of the difference has to do with default dot usage and format differences. The graphviz macro is the most general and gives you complete control over the dot rendering.
I have installed the plugin and graphviz. I am able to run graphviz from the com...
I have installed the plugin and graphviz. I am able to run graphviz from the command line, so it correct installation can be confirmed. When i add the flowchart tag to my page I get the following error.
Renderer type: "png" not recognized. Use one of: canon cmap cmapx cmapx_np dia dot fig hpgl imap imap_np ismap mif mp pcl pic plain plain-ext ps ps2 svg svgz vml vmlz vtx xdot
I just ran into the same error message. My problem was that I only install...
I just ran into the same error message. My problem was that I only installed the base graphviz rpm. I added the graphviz-graphs rpm and everything worked as expected.
I am seeing a similar problem when I use either spacegraph or flowchart macros.
...
I am seeing a similar problem when I use either spacegraph or flowchart macros.
{spacegraph} gives me the following error:
spacegraph: Couldn't run 'dot', make sure it is in your PATH
{flowchart} gives me the following error:
Renderer type: "png" not recognized. Use one of: canon cmap cmapx cmapx_np dia dot fig hpgl imap imap_np ismap mif mp pcl pic plain plain-ext ps ps2 svg svgz vml vmlz vtx xdot
I have verified that dot is installed in /usr/bin, and that /usr/bin is in my PATH, as read by my Confluence Tomcat server. I also installed graphviz-graphs rpm, as suggested above.
Okay, I figured out the problem. On Linux, you must install the graphviz.rpm, th...
Okay, I figured out the problem. On Linux, you must install the graphviz.rpm, the graphviz-graphs.rpm, and the graphviz-gd.rpm packages. Can you update the instructions above to indicate which pieces need to be installed for Unix/Linux?
Hello
I have a problem with the path to the created picture:
1. we have set the...
Hello
I have a problem with the path to the created picture:
1. we have set the context of the war to /conflu/clusterB
2. we have set the server base url to http://.../conflu/clusterB
3. no created picture will be shown, the path contains .../clusterb/...
I'm on Red Hat Enterprise Linux 4.5
I am getting the:
Renderer type: "png" no...
I'm on Red Hat Enterprise Linux 4.5
I am getting the:
Renderer type: "png" not recognized. Use one of: canon cmap cmapx cmapx_np dia dot fig hpgl imap imap_np ismap mif mp pcl pic plain plain-ext ps ps2 svg svgz vml vmlz vtx xdot
error. I installed the very latest graphviz from sources. I have all the extra packages as if it were from RPM.
It is still not working for me - can Bob Swift or someone else point me in the right direction?
Graphviz is coded to produce png images. Some Linux installations do not have p...
Graphviz is coded to produce png images. Some Linux installations do not have png image support installed. Try installing libpng on your Linux server.
(updated link to rpms).
And follow Jim's advice from above: On Linux, you must install the graphviz.rpm, the graphviz-graphs.rpm, and the graphviz-gd.rpm packages
Can you produce png images from the command line using Graphviz? If not, then it...
Can you produce png images from the command line using Graphviz? If not, then its a graphviz installation problem. If you can, then open an issue here with any log information.
and
I create a file 'test.png' using by dot on the commad line for generate a image.
#vi test.dot
#add line
digraph G{
node1;
node2;
node3;
가[fontname="Gulim.ttc"] ;
나[fontname="Gulim.ttc"] ;
node1 -> node2 [label="edge_1_2"];
node1 -> node3 [label="edge_1_3"];
node2 -> node3 [label="edge_2_3"];
가 -> 나
}
#w!
#touch test.png
#dot -Tpng test.dot -o test.png
It has no problem when I try to generate image file(test.png).
but Confluence page occur syntax error and not visible
How do I make successful using by Graphviz plugin with Confluence in Korean(Hangule)
I can't recognize syntax error in this error messages,
please check and fix it.
Correct me if I am wrong.
My problem I believe is similar as others before me.
...
Correct me if I am wrong.
My problem I believe is similar as others before me.
I create a Graphviz image. Within Ubuntu, I then right click the Graphviz generated image in a Mozilla browser and save image to the 'Desktop'.
I then try to open the generated image in the same browser, it fails and displays the following message:
The image "*test.png" cannot be displayed, because it contains errors.
I can save other png files not generated by Graphviz and view them later with no problems.
One of the previous comments was to:
re-compile GraphViz, with the configure line as such:
Hi Bob,
We've been running the GraphViz plugin version 1.1.0 under Confluence 2...
Hi Bob,
We've been running the GraphViz plugin version 1.1.0 under Confluence 2.7.3 for quite some time now without problems.
Recently the plugin started intermittently reporting dot cannot be found errors. This was some weeks ago and at the time I checked this page and checked everything I could think of on the server, tried making the .properties file change, etc. but it didn't help and I wouldn't expect it to - graphviz was still intermittently working fine, and had been working fine for ages with no changes on the server.
Yesterday I finally had the chance to do load testing on the server to see if that affects the plugin. Sure enough, as soon as a high load is placed on the server (in this case 100 fake users each requesting the index of a randomly chosen space and then sleeping between 1 and 60 seconds, again chosen at random) the graphviz plugin started reporting dot not found errors.
I took a look at the source code and discovered that the dot not found error is reported and passes on the actual IOException, but that I don't know where this "ioe" exception data can be seen. I tried to build the plugin from sources (from http://svn.atlassian.com/svn/public/contrib/confluence/graphviz-plugin/trunk) to see if I could debug it but ran into problems at this error:
confluence\extra\graphviz\SpaceGraphMacro.java:[23,40] package org.randombits.confluence.support does not exist
This error appears to be because RandomBits.org was bought out by CustomWare.net and the plugins / libraries were rehomed. Every page using the graphviz macro failed the same way and the only way to fix it was to restart Confluence.
So, something in the plugin is failing with an IOException, but I don't know how to see what that exception is. The source code I am referring to is in DotRunner.java here:
catch (IOException ioe)
{
thrownew MacroException("Couldn't run '" + verifiedDotExecutableName + "', make sure it is in your PATH", ioe);
}
I modified the graphviz.properties file to match the installation, then used jar...
I modified the graphviz.properties file to match the installation, then used jar.exe to create a new jar, but now confluence raises errors when I try to load the plugin. Confluence is installed on Windows, and I'm using a personal license for testing. If anyone has suggestions I would be grateful.
For people running solaris, Graphviz is included in the Solaris 10 Software Comp...
For people running solaris, Graphviz is included in the Solaris 10 Software Companion CD 3/05 (at least). You can also download it from http://www.sun.com/software/solaris/freeware/
I just installed it from 3/05 on a new T1000 and it worked like a charm.
Comments (26)
Jul 10, 2007
Luci says:
I am running Confluence 2.5.4 and installed Graphviz software. But when I type i...I am running Confluence 2.5.4 and installed Graphviz software. But when I type in
{flowchart} test->testing {flowchart}It shows
flowchart: No useable executable name defined in graphviz.properties
Am I missing something?
Luci
Jul 10, 2007
Bob Swift says:
Copied in the additional instructions necessary for the plugin code to locate th...Copied in the additional instructions necessary for the plugin code to locate the Graphviz executable - see information on this page. Sorry about that.
Jul 19, 2007
Gavin Bee says:
FYI I had to restart confluence after getting this error and following your inst...FYI I had to restart confluence after getting this error and following your instructions. I found this process confusing ...
Jul 17, 2007
S. parthasarathy says:
Hi, Is there documentation available on the other macros shown for t...Hi,
Is there documentation available on the other macros shown for this plugin (diagraph, graph..). Graphviz documentation is general on DOT. I am looking for the macro usage (parameters) document.
TIA,
Spart
Jul 17, 2007
Bob Swift says:
No, that is missing. There are not many parameters, most of the difference has ...No, that is missing. There are not many parameters, most of the difference has to do with default dot usage and format differences. The graphviz macro is the most general and gives you complete control over the dot rendering.
Aug 03, 2007
Lehky, Miro says:
I have installed the plugin and graphviz. I am able to run graphviz from the com...I have installed the plugin and graphviz. I am able to run graphviz from the command line, so it correct installation can be confirmed. When i add the flowchart tag to my page I get the following error.
Renderer type: "png" not recognized. Use one of: canon cmap cmapx cmapx_np dia dot fig hpgl imap imap_np ismap mif mp pcl pic plain plain-ext ps ps2 svg svgz vml vmlz vtx xdot
Aug 12, 2007
Jerry Champlin says:
I just ran into the same error message. My problem was that I only install...I just ran into the same error message. My problem was that I only installed the base graphviz rpm. I added the graphviz-graphs rpm and everything worked as expected.
Aug 14, 2007
Lehky, Miro says:
I just tried installing that additional rpm and still have the same problem...I just tried installing that additional rpm and still have the same problem.
Aug 13, 2007
Jim Dibble says:
I am seeing a similar problem when I use either spacegraph or flowchart macros. ...I am seeing a similar problem when I use either spacegraph or flowchart macros.
{spacegraph} gives me the following error:
spacegraph: Couldn't run 'dot', make sure it is in your PATH
{flowchart} gives me the following error:
Renderer type: "png" not recognized. Use one of: canon cmap cmapx cmapx_np dia dot fig hpgl imap imap_np ismap mif mp pcl pic plain plain-ext ps ps2 svg svgz vml vmlz vtx xdot
I have verified that dot is installed in /usr/bin, and that /usr/bin is in my PATH, as read by my Confluence Tomcat server. I also installed graphviz-graphs rpm, as suggested above.
Any ideas?
Aug 16, 2007
Jim Dibble says:
Okay, I figured out the problem. On Linux, you must install the graphviz.rpm, th...Okay, I figured out the problem. On Linux, you must install the graphviz.rpm, the graphviz-graphs.rpm, and the graphviz-gd.rpm packages. Can you update the instructions above to indicate which pieces need to be installed for Unix/Linux?
Aug 16, 2007
Bob Swift says:
Done. Thanks for figuring this out.Done. Thanks for figuring this out.
Oct 17, 2007
Ariel Küchler says:
Hello I have a problem with the path to the created picture: 1. we have set the...Hello
I have a problem with the path to the created picture:
1. we have set the context of the war to /conflu/clusterB
2. we have set the server base url to http://.../conflu/clusterB
3. no created picture will be shown, the path contains .../clusterb/...
Feb 11, 2008
Rick Hadsall says:
I'm on Red Hat Enterprise Linux 4.5 I am getting the: Renderer type: "png" no...I'm on Red Hat Enterprise Linux 4.5
I am getting the:
Renderer type: "png" not recognized. Use one of: canon cmap cmapx cmapx_np dia dot fig hpgl imap imap_np ismap mif mp pcl pic plain plain-ext ps ps2 svg svgz vml vmlz vtx xdot
error. I installed the very latest graphviz from sources. I have all the extra packages as if it were from RPM.
It is still not working for me - can Bob Swift or someone else point me in the right direction?
Thanks!
Feb 11, 2008
Bob Swift says:
Graphviz is coded to produce png images. Some Linux installations do not have p...Graphviz is coded to produce png images. Some Linux installations do not have png image support installed. Try installing libpng on your Linux server.
(updated link to rpms).
And follow Jim's advice from above:
On Linux, you must install the graphviz.rpm, the graphviz-graphs.rpm, and the graphviz-gd.rpm packages
Feb 11, 2008
Rick Hadsall says:
paehowld200:~>ls /usr/lib/*libpng* 4 lrwxrwxrwx 1 root root 19 Aug ...paehowld200:~>ls /usr/lib/*libpng*
4 lrwxrwxrwx 1 root root 19 Aug 8 2007 /usr/lib/libpng12.so.0 -> libpng12.so.0.1.2.7
152 -rwxr-xr-x 1 root root 144172 Oct 24 2006 /usr/lib/libpng12.so.0.1.2.7
4 lrwxrwxrwx 1 root root 18 Aug 8 2007 /usr/lib/libpng.so.2 -> libpng.so.2.1.0.16
148 -rwxr-xr-x 1 root root 142680 Oct 7 2006 /usr/lib/libpng.so.2.1.0.16
4 lrwxrwxrwx 1 root root 17 Aug 8 2007 /usr/lib/libpng.so.3 -> libpng.so.3.1.2.7
4 lrwxrwxrwx 1 root root 19 Aug 8 2007 /usr/lib/libpng.so.3.1.2.7 -> libpng12.so.0.1.2.7
paehowld200:~>
Update - decided to install yours too (to /usr/local) :
paehowld200:/usr/local/confluence/logs>ls /usr/local/lib/*png*
956 -rw-r-
r- 1 x033124 blaze 969032 Feb 11 18:39 /usr/local/lib/libpng12.a8 -rwxr-xr-x 1 x033124 blaze 810 Feb 11 18:39 /usr/local/lib/libpng12.la
4 lrwxrwxrwx 1 x033124 blaze 18 Feb 11 18:39 /usr/local/lib/libpng12.so -> libpng12.so.0.12.0
4 lrwxrwxrwx 1 x033124 blaze 18 Feb 11 18:39 /usr/local/lib/libpng12.so.0 -> libpng12.so.0.12.0
536 -rwxr-xr-x 1 x033124 blaze 539912 Feb 11 18:39 /usr/local/lib/libpng12.so.0.12.0
4 lrwxrwxrwx 1 x033124 blaze 10 Feb 11 18:39 /usr/local/lib/libpng.a -> libpng12.a
4 lrwxrwxrwx 1 x033124 blaze 11 Feb 11 18:39 /usr/local/lib/libpng.la -> libpng12.la
4 lrwxrwxrwx 1 x033124 blaze 11 Feb 11 18:39 /usr/local/lib/libpng.so -> libpng12.so
4 lrwxrwxrwx 1 x033124 blaze 16 Feb 11 18:39 /usr/local/lib/libpng.so.3 -> libpng.so.3.12.0
552 -rwxr-xr-x 1 x033124 blaze 555968 Feb 11 18:39 /usr/local/lib/libpng.so.3.12.0
paehowld200:/usr/local/confluence/logs>
Still nothing. I stopped and restarted Confluence too.
Feb 11, 2008
Rick Hadsall says:
Update: When you compile from source, it includes the two files from graphviz-...Update: When you compile from source, it includes the two files from graphviz-gd and the 54 templates from -graphs... it's full kit.
Feb 11, 2008
Bob Swift says:
Can you produce png images from the command line using Graphviz? If not, then it...Can you produce png images from the command line using Graphviz? If not, then its a graphviz installation problem. If you can, then open an issue here with any log information.
Feb 11, 2008
Rick Hadsall says:
Hi Bob, No, I couldn't. But I did not think it was a plugin error. ...Hi Bob,
No, I couldn't. But I did not think it was a plugin error. So I decided to re-compile GraphViz, with the configure line as such:
./configure --prefix=/usr/local --with-pngincludedir=/usr/local/include/libpng12 --with-pnglibdir=/usr/local/lib
Basically, pointing to the version of libpng you recommended that I compiled myself (as opposed to the system's in /usr/lib)... and it worked!
So thank you for the link into libpng and the suggestions - they helped me work through it.
Feb 26, 2008
Craig Fox says:
Any tips for OSX on Powerpc installation. GraphVIZ 2.14.1 from http://www.ryand...Any tips for OSX on Powerpc installation.
GraphVIZ 2.14.1 from http://www.ryandesign.com/graphviz/
I get the following error:
arning: Could not load "/usr/local/graphviz-2.14/lib/graphviz/libgvplugin_pango.4.dylib" - dlopen(/usr/local/graphviz-2.14/lib/graphviz/libgvplugin_pango.4.dylib, 9): Library not loaded: /usr/X11R6/lib/libXrender.1.dylib Referenced from: /usr/local/graphviz-2.14/lib/graphviz/libgvplugin_pango.4.dylib Reason: image not foundWarning: Could not load "/usr/local/graphviz-2.14/lib/graphviz/libgvplugin_pango.4.dylib" - dlopen(/usr/local/graphviz-2.14/lib/graphviz/libgvplugin_pango.4.dylib, 9): Library not loaded: /usr/X11R6/lib/libXrender.1.dylib Referenced from: /usr/local/graphviz-2.14/lib/graphviz/libgvplugin_pango.4.dylib Reason: image not foundRenderer type: "png" not recognized. Use one of: canon cmap cmapx cmapx_np dot fig gd gd2 gif gtk imap imap_np ismap pdf plain plain-ext png ps ps2 svg svgz vml vmlz vrml wbmp xdot xlib
Mar 06, 2008
RakSik jungrs says:
Hello I'm Confluence Korean user. I'm using Graphviz plugin on our Confluence(v...Hello I'm Confluence Korean user.
I'm using Graphviz plugin on our Confluence(ver2.7)
Confluence(ver2.7),
Graphviz plugin(Ver1.1.0)
graphviz(Ver2.8)
Fedora Core6,
Tomcat5.5.23,
Mysql5.0.27.
Our server is installed graphviz(Ver2.8)
when we use
macro some problem occured.
I write Confluenc Page with
digraph G
{
node1;
node2;
node3;
node1 -> node2 [label="edge_1_2"];
node1 -> node3 [label="edge_1_3"];
node2 -> node3 [label="edge_2_3"];
}
It had not problem.
But I using Korean Hangul has Some problem
digraph G{
node1;
node2;
node3;
가[fontname="Gulim.ttc"] ;
나[fontname="Gulim.ttc"] ;
node1 -> node2 [label="edge_1_2"];
node1 -> node3 [label="edge_1_3"];
node2 -> node3 [label="edge_2_3"];
가 -> 나
}
The error messge is
Syntax Error:
digraph G
and

I create a file 'test.png' using by dot on the commad line for generate a image.
#vi test.dot
#add line
digraph G{
node1;
node2;
node3;
가[fontname="Gulim.ttc"] ;
나[fontname="Gulim.ttc"] ;
node1 -> node2 [label="edge_1_2"];
node1 -> node3 [label="edge_1_3"];
node2 -> node3 [label="edge_2_3"];
가 -> 나
}
#w!
#touch test.png
#dot -Tpng test.dot -o test.png
It has no problem when I try to generate image file(test.png).
but Confluence page occur syntax error and not visible
How do I make successful using by Graphviz plugin with Confluence in Korean(Hangule)
I can't recognize syntax error in this error messages,
please check and fix it.
Thanks
Apr 02, 2008
Royce Wong says:
Great plugin! Thanks Bob. (Solaris 8, JBoss, Confluence 2.7.1)Great plugin! Thanks Bob. (Solaris 8, JBoss, Confluence 2.7.1)
Apr 25, 2008
Jeff Tanner says:
Correct me if I am wrong. My problem I believe is similar as others before me. ...Correct me if I am wrong.
My problem I believe is similar as others before me.
I create a Graphviz image. Within Ubuntu, I then right click the Graphviz generated image in a Mozilla browser and save image to the 'Desktop'.
I then try to open the generated image in the same browser, it fails and displays the following message:
The image "*test.png" cannot be displayed, because it contains errors.
I can save other png files not generated by Graphviz and view them later with no problems.
One of the previous comments was to:
re-compile GraphViz, with the configure line as such:
./configure --prefix=/usr/local --with-pngincludedir=/usr/local/include/libpng12 --with-pnglibdir=/usr/local/lib
Is this the correct action for my problem?
Thanks
Jeff in Seattle
Sep 08
Ximon Eighteen says:
Hi Bob, We've been running the GraphViz plugin version 1.1.0 under Confluence 2...Hi Bob,
We've been running the GraphViz plugin version 1.1.0 under Confluence 2.7.3 for quite some time now without problems.
Recently the plugin started intermittently reporting dot cannot be found errors. This was some weeks ago and at the time I checked this page and checked everything I could think of on the server, tried making the .properties file change, etc. but it didn't help and I wouldn't expect it to - graphviz was still intermittently working fine, and had been working fine for ages with no changes on the server.
Yesterday I finally had the chance to do load testing on the server to see if that affects the plugin. Sure enough, as soon as a high load is placed on the server (in this case 100 fake users each requesting the index of a randomly chosen space and then sleeping between 1 and 60 seconds, again chosen at random) the graphviz plugin started reporting dot not found errors.
I took a look at the source code and discovered that the dot not found error is reported and passes on the actual IOException, but that I don't know where this "ioe" exception data can be seen. I tried to build the plugin from sources (from http://svn.atlassian.com/svn/public/contrib/confluence/graphviz-plugin/trunk) to see if I could debug it but ran into problems at this error:
This error appears to be because RandomBits.org was bought out by CustomWare.net and the plugins / libraries were rehomed. Every page using the graphviz macro failed the same way and the only way to fix it was to restart Confluence.
So, something in the plugin is failing with an IOException, but I don't know how to see what that exception is. The source code I am referring to is in DotRunner.java here:
Cheers,
Ximon
Sep 08
Bob Swift says:
It is probably a timeout on the running of the dot. Sorry, don't have time at th...It is probably a timeout on the running of the dot. Sorry, don't have time at the moment to deal with it. Please write up as bug.
Oct 02
Cynthia Pepper says:
I modified the graphviz.properties file to match the installation, then used jar...I modified the graphviz.properties file to match the installation, then used jar.exe to create a new jar, but now confluence raises errors when I try to load the plugin. Confluence is installed on Windows, and I'm using a personal license for testing. If anyone has suggestions I would be grateful.
Oct 27
Roberto Dominguez says:
For people running solaris, Graphviz is included in the Solaris 10 Software Comp...For people running solaris, Graphviz is included in the Solaris 10 Software Companion CD 3/05 (at least). You can also download it from http://www.sun.com/software/solaris/freeware/
I just installed it from 3/05 on a new T1000 and it worked like a charm.