Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get rid of "_anonymous_0" tooltips in SVG with GraphViz

Tags:

graphviz

I generate SVGs using Graphviz. When embedded in HTML, the nodes, edges and arrows show an "_anonymous_0" tooltip. Can I get rid of these from within GraphViz?

like image 659
Anthony Liekens Avatar asked Aug 28 '11 13:08

Anthony Liekens


1 Answers

If your dot source start something like this:

digraph { 

it may help to use the following:

digraph "" {

It looks like the name of the graph (digraph mygraph { ) is transformed to a title element (<title>mygraph</title>). If you omit the name, *anonymous_0* is used instead. But if "" is used, no title element is being created.

There may be a better solution to this though...

like image 142
marapet Avatar answered Sep 28 '22 07:09

marapet