Adding Web Links to D3 Objects
Learn how to connect your objects to web links.
We'll cover the following...
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:
Notice the little pointing finger at the bottom that would indicate that there actually is a link there.
The code that we ...