Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001948graphvizNeatopublic2010-09-07 15:202011-04-28 04:03
Assigned Togviz 
StatusacknowledgedResolutionno change required 
PlatformOS*-*-OS Version
Summary0001948: Multiline in Tooltip

I would like to have two lines in a tooltip of a node.
E.g. when I hover my mouse over a node named A, it will show the following tooltip:
the first line
the second line

But it doesn't work for using "\n". Here is the code:

graph G {
A [tooltip="the first line \n the second line"]

I have tried to replace \n with , but it doesn't work.
However, if i replace \n with !, it successfully shows the ! character.
Hence, I wonder if it is a bug for not allowing or graphviz simply doesn't support multiline tooltip.

In addition, is there any way for me to have multiline in tooltip? Thanks.
Steps To Reproduce

graph G {
A [tooltip="the first line \n the second line"]
Additional Information

[erg] At last check, there is no standard way to specify multiline tooltips for
all browsers. Some people have found embedding

works for some browsers.
That is, set
tooltip="the first line the second line"]
This works in Safari but not in Firefox.

There are also examples on the web showing how to achieve this using javascript.
TagsNo tags attached.
VERSION     2.26.3
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => user1

MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker