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
LLeoBergqvist
Last edited Feb 23, 2020
Created on Feb 23, 2020

This example shows a world map with countries colored light green and a blue sphere background. Hovering over a country turns it red, and users can pan and zoom the entire map using the mouse wheel or drag gestures. The visualization uses D3 v5 with a natural Earth projection via `d3.geoNaturalEarth1` and renders the map as SVG paths generated with `d3.geoPath`. Country boundaries come from TopoJSON world-atlas data, while country names are loaded from a TSV file and attached as SVG `<title>` tooltips. Zoom and pan behavior is implemented through the `d3.zoom` API.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed