-
vizulyApril 11, 2016 at 7:30 pm #6097
Hi Christopher,
It looks like you are on the right track. Sometimes these issues can be tricky to debug as the layout can be a little complex.
What I might suggest is that instead of piggy-backing on the
haloGroup
(which is being used to generate path elements) that you do the following and create a completely different layer to put the labels on (I suspect the text elements are getting in the way of the mouse-over being triggered by the paths.)1. In the initialize routine add a new
g
element named something likelabelPlot
. You can insert thisg
element before thehaloPlot
so it doesn’t interfere with the mouse events.2. In the update routine create a new group called
labelGroup
and follow the same pattern as the haloGroup.enter()/exit()… But instead of adding path elements, add yourtext
elements andtextpaths
You can use the same data to populate this new group for its measurements and layout.Doing the above should keep things separate and easier to debug. If this doesn’t help and you want to send me over your code I can take a stab at trying to see what is going on.
– Tom
You must be logged in to reply to this topic.
© 2024 — vizuly.io