Skip to content
Advertisement

d3_Tooltips positioning using d3.select(this)

I’m using d3.js v.6. I have HTML div tooltips:

JavaScript

appear on the hovering event according this code:

JavaScript

I need to slightly shift positioning of #tooltip. I’ve already tested these options which didn’t work:

JavaScript

and

JavaScript

Advertisement

Answer

Try this code (should work with V6):

JavaScript
Advertisement