Hi I am following this example code and I use it in v6 version: https://bl.ocks.org/larsenmtl/e3b8b7c2ca4787f77d78f58d41c3da91 everything works fine but at the end:
d3.select(this).select("text").text(y.invert(pos.y).toFixed(2));
I changed it to
d3.select(event.currentTarget).select("text").text(y.invert(pos.y).toFixed(2));
the weird thing happened, the event.currentTarget point to the rect, not the g class, so
it doesn't show the text, I tried everything I can do, but have no luck
This is such a pain for me, could any one please help me with this, many thanks!