Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cheap Tricks for interaction

Public visualization

Cheap Tricks for interaction

0 stars0🌍 Public
Hhugomell
Last edited Jul 31, 2020
Created on Jul 31, 2020

This example shows an interactive world map visualization that renders countries as light green polygons on a blue sphere. Hovering over any country changes its fill color to red and displays the nation’s name via a tooltip. The map is built using D3 (d3.v5) with d3.geoPath and a d3.geoNaturalEarth1 projection, combining TopoJSON and TSV data from the world-atlas package. User interaction is enhanced by d3.zoom, enabling pan and zoom transformations on the SVG group.

AI-generated description

A Minimal Example illustrating the basic structure of a Vizhub visualization.

Comments

Sign in to join the discussion.

MIT Licensed