Skip to main content
Public

Share visualization

Loading preview…

Cheap Tricks for Interaction

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Cheap Tricks for Interaction

0
Ssrrajendran
Last edited Nov 7, 2018
Created on Sep 26, 2018

This visualization presents an interactive world map where hovering over a country turns it red and clicking changes its fill to brown with a thicker stroke, clearly indicating the selected nation. Built with D3 v5, it utilizes `d3.geoPath` with the Natural Earth projection and `topojson.feature` to render country boundaries. The map draws geographical data from the world-atlas 50m TopoJSON and TSV files, which also supply country names via ISO numeric codes. Hover and click interactions are handled directly on the SVG paths, with CSS classes controlling the visual states.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed