The above example is intended to demonstrate adding a hyperlink to an object (the rectangle) and instructing the text object to be transparent to the pointer so that the link on the rectangle is recognised ‘through’ the text.
This is one of the code samples for the update to the book D3 Tips and Tricks to version 7 of d3.js.