Skip to main content
Public

Share visualization

Loading preview…

Fork of Smiley Face Part II

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 Smiley Face Part II

0
Jjames.haarbauer@dunya-analytics.com
Last edited Jun 18, 2024
Created on Jun 17, 2024

This example visualizes United Nations population data for 2020 using a bar chart, where each country is represented by a horizontal rectangle. The chart is rendered with SVG within a React application, leveraging D3’s `scaleBand` and `scaleLinear` to map country names and population values to pixel coordinates. Data is loaded asynchronously via D3’s `csv` parser from a remote gist URL. The code uses D3’s `max` utility to determine the scale domain.

AI-generated description

A program that follows your mouse with a circle.

Comments

Sign in to join the discussion.

MIT Licensed