2

I am implementing the forced-collapsible given here: http://mbostock.github.io/d3/talk/20111116/force-collapsible.html

enter image description here

How can I display the node-title for a node when I hover the cursor over that node. Please help.

VividD
  • 10,456
  • 6
  • 64
  • 111
Abhay
  • 129
  • 2
  • 11
  • 2
    [This answer](http://stackoverflow.com/questions/10805184/d3-show-data-on-mouseover-of-circle/10806220#10806220) should help. – Lars Kotthoff Sep 24 '13 at 09:03
  • Lars: Thanks! One more thing, instead of hover, if a want to display the node-title on clicking the node, how that can be done? Any help will be highly appreciated. – Abhay Sep 24 '13 at 10:18
  • 1
    That case is a bit more complicated as it's not a standard tooltip. You'll have to attach an event handler to the `click` event that will make something like a floating `div` visible. – Lars Kotthoff Sep 24 '13 at 10:33

0 Answers0