Adding Web Links to D3 Objects

Learn how to connect your objects to web links.

The idea with this tip/trick is to be able to add a “link” to an object so that when you click on it, it takes you to a web page that we will pre-define.

We are going to generate a simple rectangle with some text and look at linking from the rectangle and the text, separately and with some fanciness at the end.

The end result will be something that looks a little like this:

Get hands-on with 1400+ tech skills courses.