Be Kind To New Users
Be Kind To New Users

Reputation: 10063

tooltip in dot (graphviz)

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

Upvotes: 7

Views: 5708

Answers (1)

ben5756
ben5756

Reputation: 374

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 

Upvotes: 4

Related Questions