Skip to main content
Public

Share visualization

Loading preview…

Fork of 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

Fork of Cheap Tricks for Interaction

0
IIgor Bojković
Last edited Aug 23, 2023
Created on Aug 19, 2023

This fork of the "Cheap Tricks for Interaction" example displays world countries on an orthographic projection, colored by continent using an ordinal color scale. The map is built with `d3.geoPath` and data from `world-atlas`, with country names from a matching TSV file. A custom drag interaction, implemented via `d3.drag`, allows users to move a temporary green rectangle across the screen, while the underlying sphere rotation code remains commented out.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed