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
Ss-janibekova
Last edited Nov 26, 2019
Created on Nov 26, 2019

This example shows an interactive world map colored by economic classification, with a categorical color legend. Users can pan and zoom the map using mouse or touch gestures, and hovering over a country highlights it and reveals its name and economic group via a tooltip. The visualization uses d3.geoNaturalEarth1 for projection, d3.geoPath for rendering GeoJSON features, and d3.zoom for interaction. d3.scaleOrdinal with schemeSpectral maps economic categories to colors, while the legend is custom-built from SVG elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed