block by d3noob f99bdc42de80d39de9b23292c1471eb7

Adding links to objects in v5

Full Screen

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 5 of d3.js.

index.html