block by d3noob 5e894c1981c355b0b552a9dd10c05131

Adding links to objects in v6

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

index.html