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

1
WWouterero
Last edited Oct 30, 2019
Created on Oct 30, 2019

This example shows an interactive world map with zooming and panning controlled by the mouse. Hovering a country turns it red, and a tooltip displays the country’s name. Built with D3 v5, it uses `d3.geoNaturalEarth1` for the projection, `d3.geoPath` to generate the country shapes, and the `zoom` behavior from the `d3` module to apply transforms on a zoom event. The map draws a blue sphere background and green countries, using TopoJSON shape data and TSV country names from the `world-atlas` package.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed