I am trying to add React-Tooltip
to my React
app, and when I just statically add data-tip="hello world"
to an element, it is working, however, when I append the attribute to an element inside of svg
it is not. I see that the attribute is added inside html
:
But hovering over the element does not show the tooltip. I am using collapsible tree code:
https://bl.ocks.org/mbostock/4339083
And trying to make tooltip working like that:
node.attr("data-tip", "helloworld");
Any suggestions would be greatly appreciated.