Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tooltip in dot (graphviz)

Tags:

graphviz

dot

I have the following graphviz file:

digraph ServerDependency {
    Server02 -> Server01 [tooltip="Database"];
    Server02 -> Server06 [tooltip="Images"];
}

dot -Timap -oserverdependency.map -Tgif -oserverdependency.gif serverdependency.gv

Then I have a html file that looks like this:

<html>
<head>
</head>
<body>
<A HREF="serverdependency.map"><IMG SRC="serverdependency.gif" ismap="ismap"/></A>
</body>
</html>

Based on the name tooltip I would expect to hover over the node and see the text, but I don't.

How can I change the command or html to actually be able to hover over the node to see the tooltip.

I am following the example at this URL about 1/3 down the page: https://www.graphviz.org/doc/info/output.html

like image 406
Be Kind To New Users Avatar asked Feb 17 '19 03:02

Be Kind To New Users


1 Answers

It looks like you are trying to output to a .map and .gif format. I am unsure about .map but .gif doesn't support tooltop as the image doesn't support a hover over type.

Try outputting to .svg as well and opening this in a browser.

dot -Timap -oserverdependency.map -Tgif -oserverdependency.gif -Tsvg -oserverdependency.svg serverdependency.gv 
like image 197
ben5756 Avatar answered Sep 28 '22 16:09

ben5756