I want to access the parent element of the current element
Here is the HTML structure
svg g id=invisibleG g circle g circle g circle
Basically I want to add text inside the circles when I hover over them.
So, I want something like this to hang in any particular circle
svg g id=invisibleG g circle --> radius is increased and text presented inside that text g circle g circle
In hover mode, I can select the current element via d3.select (this), How can I get the root element (g in my case)?
user3074097 Dec 17 '13 at 18:29 2013-12-17 18:29
source share