Skip to main content
100%

addlinkToObj

✓ Published0🌍 Public
BBillalD
Last edited Dec 11, 2016
Created on Dec 11, 2016

This example shows a single interactive link: a rounded, light-green rectangle labeled with the word “gongoozler” that, when clicked, opens the corresponding Wikipedia page. The visualization uses D3 v2 to append an SVG anchor (`<a>`) with an `xlink:href` attribute pointing to `http://en.wikipedia.org/wiki/gongoozler`, then attaches a `rect` inside it for the clickable area. A separate `text` element, styled with `pointer-events: none`, overlays the label without intercepting clicks. The code hardcodes the word and dimensions, rendering the result as static SVG with no data source or interaction beyond the hyperlink.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/BillalD/'>BillalD</a>'s block: <a href='http://bl.ocks.org/BillalD/c8ab23767da83f9f549ee45031decbdb'>addlinkToObj</a>

mit Licensed

Similar vizzes