Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Project | Primary Balance | Part 1

Public visualization

Viewing a saved revision (read-only)

8cf54eef5ecb47919974f749ac120a21

Project | Primary Balance | Part 1

0 stars3🌍 Public
MMukund Khandelwal
Last edited Oct 24, 2018
Created on Oct 17, 2018

This map visualizes primary balance values by country, with each nation colored orange and displaying its name, primary balance, and economic status in a tooltip on hover. The visualization uses a geographic projection (`d3.geoEquirectangular`) to render world boundaries as SVG paths, with data loaded from a CSV file and world atlas TopoJSON. The code applies a zoom interaction and hover styling that changes the fill to yellow, utilizing `d3.geoPath` for path generation and the `topojson` library for feature conversion.

AI-generated description