Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

WorldMap Visualization Based on Categories

Public visualization

WorldMap Visualization Based on Categories

0 stars0🌍 Public
Ssuryavamsi00024
Last edited Jul 20, 2023
Created on Jul 19, 2023
Forked from Hello VizHub

This example displays a world map where each country is colored according to its economic category, using a sequential Blues color scheme. Hovering over a country highlights it in red and reveals a tooltip with its name and economy type. The map, built with D3.js, uses a Natural Earth projection and loads geographic data from the world-atlas package via TopoJSON, converting it to GeoJSON for rendering as SVG paths. Pan and zoom functionality is enabled through D3’s zoom utility.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.

Comments

Sign in to join the discussion.

MIT Licensed