-
Notifications
You must be signed in to change notification settings - Fork 520
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
Doesn't Work on SVG elements #41
Comments
Can you use a div wrapper around it and put the title on that instead? |
Thanks for your response! I wanted to try that, but I can't. I am using an SVG canvas and I have multiple SVG objects in that canvas populated using D3. |
Are you using a <svg xmlns="http://www.w3.org/2000/svg">
<rect x="20" y="30" width="200" height="150">
<title>Hello, World!</title>
</rect>
</svg> This won't work currently as it only checks a |
Nope! I am using it like:
If this doesn't work then it's alright. I'll have to find my way around this. Thank you so much nonetheless! Tippy has been great so far! |
Are you passing in the svg element to be tooltipped or the circle node there? If you pass it directly to the element with the actual |
Thank you so much! This is great! What if I have multiple SVG elements? Can I do a select all? you're a life-saver! |
In that case, pass just a CSS selector in: http://jsfiddle.net/819nouob/3/ If you have different types of elements, you can just separate them by commas like |
Works! Thank you so much, atomiks! I have no idea how I can ever repay you! You saved my life! |
Awesome =] |
Thanks for the great demo @atomiks! I'm new to Tippy.js and this was super helpful. In case anyone comes across this in the future, I updated the last demo to work with v2.0.8: http://jsfiddle.net/nholden/b7yk6mbb/1/ |
Nice, thank you! |
Just adding a note here as Tippy no longer seems to read the Instead of the above advice, you'll want to set your content into a |
I tried adding a title attribute to an SVG circle, but it doesn't work. Is this feature currently available?
The text was updated successfully, but these errors were encountered: