block by d3noob 87d9880fd5ae41b8fb5e309b59031002

Adding links to objects in v4

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

index.html