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 “gongoozler” that, when clicked, opens the corresponding Wikipedia page. The visualization demonstrates how to attach a hyperlink to an SVG shape using an `<a>` element with an `xlink:href` attribute. Rendered with D3 v2 and SVG, the code creates the rectangle and centers text over it, with pointer events disabled on the label so clicks pass through to the link. The data source is implicit in the hardcoded word, and the rendering approach relies on standard SVG elements.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes