Get rid of "_anonymous_0" tooltips in SVG with GraphViz

I am creating SVG using Graphviz. When embedded in HTML, nodes, edges, and arrows show the tooltip "_anonymous_0". Can I get rid of them from inside GraphViz?

+6
source share
2 answers

If your point source starts something like this:

digraph { 

this may help use the following:

 digraph "" { 

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

There might be a better solution though ...

+7
source

Found by trial and error :-)

 digraph "my title" { tooltip=" " node [tooltip=" "] edge [tooltip=" "] ... } 

disables the automatic creation of tooltips.


empty line

 tooltip="" 

does not disable (!) generation.

+8
source

Source: https://habr.com/ru/post/896075/


All Articles