Skip to main content
Public

Share visualization

Loading preview…

Fork of Fork of Fork of Scatterplot for peng bird dataset

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 Fork of Fork of Scatterplot for peng bird dataset

0
Cc_peimann@coloradocollege.edu
Last edited May 10, 2024
Created on May 10, 2024

This interactive world map visualizes global obesity rates, with countries colored on a red sequential scale according to their reported obesity percentage, while nations lacking data remain gray. The visualization uses the d3.geoMercator projection and d3.geoPath to render country boundaries from a GeoJSON world map, then overlays obesity data from an external CSV file. The code employs d3.scaleSequential with d3.interpolateReds to create the color mapping, and d3.json and d3.csv load the respective data sources. Hovering a country turns it orange via CSS, and country labels appear at path centroids. The map is displayed in an SVG container within an HTML page.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed