Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Labeltooltip draw issue #59

Closed
JonNeat opened this issue May 7, 2018 · 5 comments
Closed

Labeltooltip draw issue #59

JonNeat opened this issue May 7, 2018 · 5 comments

Comments

@JonNeat
Copy link

JonNeat commented May 7, 2018

Hi everyone,

Try render this dot:

digraph X {
rankdir=LR;
"X" [label=Bob, shape=square, URL="Y", style=filled, fillcolor="#dd4477"];
"Y" [label=Bob2, shape=square, URL="Y", style=filled, fillcolor="#ff9900"];
"X" -> "Y" [label=Danser, labeltooltip=asdada];
}

When hovering the X -> Y edge, the tooltip is not displayed. Looking at the HTML it seems to be an order issue.

Move the g-tag for the label above all others in the rendered html and it works.

@magjac
Copy link
Owner

magjac commented May 7, 2018

You've used labeltooltip which works as expected:

image

If you want a tooltip for just the non-label part, use edgetooltip. If you want a tooltip for the whole edge, including the label part, use tooltip.

Thanks for submitting this issue. If you are using this library, don't forget to Watch it to stay tuned for updates or even Star it if you like it.

You can also use Stack Overflow tags d3.js & graphviz or the d3-graphviz Slack to ask for help. Although I make an effort to assist everyone that asks, I am not always available to provide help promptly or directly.

@magjac magjac closed this as completed May 7, 2018
@JonNeat
Copy link
Author

JonNeat commented May 7, 2018

Hi @magjac

Thanks for taking your time to reply.

I cannot reproduce what you just said. The tooltip does not show on either: labeltooltip, edgetooltip or tooltip. Tested in both chrome and firefox.

@JonNeat
Copy link
Author

JonNeat commented May 7, 2018

untitled

See attached file. Hovering "danser" gives me the graph-label. I'm using labeltooltip here. The other edge's labeltooltip works fine.

@magjac
Copy link
Owner

magjac commented May 7, 2018

I don't understand your last comment. Please provide an example on https://jsfiddle.net/

This one works as expected: https://jsfiddle.net/b4phbmjd/1/

@JonNeat
Copy link
Author

JonNeat commented May 7, 2018

@magjac

Thanks for the example. There must be a CSS bug at my end I assume. Very strange.

Edit: Yes, I had a css bug. Be careful of removing pointer-events with css.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants