Getting clicked element id/name/etc. on draw callback

41 views
Skip to first unread message

Dénes Csala

unread,
Apr 18, 2017, 2:18:48 PM4/18/17
to d3plus
Hi Dave, all,

I have a visualization that has a nested id, therefore the elements are clickable. In this case it is a scatterplot but this doesn't actually matter.
I have been able to get the current id and depth - like this:
.draw(undefined, function(){console.log(viz.depth(),vizid())})

Any idea how to get any info about the clicked point that lead here?

Thanks,
Denes

Dénes Csala

unread,
Apr 18, 2017, 2:26:07 PM4/18/17
to d3plus
Reply all
Reply to author
Forward
0 new messages