graph-viz-d3-js icon indicating copy to clipboard operation
graph-viz-d3-js copied to clipboard

How to render tooltip

Open elymatos opened this issue 7 years ago • 3 comments

Hello, How can I render a node tooltip (or add an event onclick to nodes)? Thanks for the job! Ely

elymatos avatar Dec 30 '17 14:12 elymatos

You can use the Graphviz tooltip attribute. Possibly also the URL attribute, depending on what you want to do.

If you want help with adding an onclick event, please provide your DOT source. In general, Stack Overflow is a better place to ask for help.

magjac avatar Jan 01 '18 12:01 magjac

Thanks for answer! I've tried the tooltip attribute, but it seems the issue #31 is valid yet (it means, the tooltip attribute is ignored in the translation to SVG). Ely

elymatos avatar Jan 01 '18 22:01 elymatos

Oh, yes, I had forgotten that.

magjac avatar Jan 01 '18 23:01 magjac