Open jo-pol opened 8 years ago
Use a title tag rather than an attribute http://stackoverflow.com/questions/102457/how-to-create-an-svg-tooltip-like-box
Further comment in the issue above: "This does not seem to work when you add it dynamically using javascript."
Similar circumstances that prevent Internet Explorer to show the colored line ends.
A working example is available on http://www.coppelia.io/2014/07/an-a-to-z-of-extra-features-for-the-d3-force-layout/ or the corresponding http://jsfiddle.net/simonraper/f8R3M/?utm_source=website&utm_medium=embed&utm_campaign=f8R3M
More on http://labratrevenge.com/d3-tip/ script location https://cdnjs.cloudflare.com/ajax/libs/d3-tip/0.6.7/d3-tip.min.js
Could get it working on a desk top, but the title attribute did that too. On an IPad no luck so far. The problem might be having two force graphs.
The project seems dead so this is not the way to go.
1c31944 is a nice enhancement, but it does not fix the tool tips inside SVG.
Perhaps first fix #59 then try (again?) some of the examples above.
The tiles page has a tooltip on the catalogues link that works on hover when using a mouse or when touched long enough on a mobile device. The link (which is a fall back) gets a bit in the way though for mobile devices. For Safari it needs at least iOS-v10, though on an iPad Air with iOS-v8 the tooltip appears but won't vaish. The UC browser thinks it might be an ad.
Tooltips on diagrams don't work on mobile (touch) devices,
nor scrolling the image map. With tooltips it becomes easier to choose stitches as demonstrated with the screenshot.