block by d3noob 3e0e50c971b4bc52a377c8b66740f347

Adding links to objects in v7

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

index.html