Open magicpauluk opened 2 years ago
This should be straightforward: you can use HTML hyperlink elements or add event listeners to SVG.
Actually, I'll leave this open as it may be helpful to create an example or add this feature to my app.
You can add ".attr("onclick", function(d) { return "window.open('You URL')"; })" in js 'draw' function.
Is there a way to add the word to the url ? If I add + d.word it says d is not defined
This is ideal for a project I am working on. I wondered if anyone had applied an action or hyperlink to the words?