Accepted answer

Typically what I do in these situations is put a breakpoint on the line in question and poke around and see if the object contains the data that I want somewhere else.

It looks like you can use .datum().y here:

    text_object =

enter image description here

This is still kind of weird code (using DOM elements as data for a data join for some other elements is pretty hacky) but hopefully this will get you moving.

Related Query