Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Question 4

Public visualization

Viewing a saved revision (read-only)

ab4db47ceb684c22a381d8b8c75cbca8

Fork of Question 4

0 stars0🌍 Public
SSreeKohaliPatel@my.unt.edu
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from question 4

This visualization shows the population of 30 countries in 2020 as a horizontal bar chart. Each bar represents a country, with its length proportional to population. The chart uses a React component structure, with D3's `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. Data is loaded from a remote CSV file using D3's `csv` function, formatted with `format('.2s')`, and rendered as SVG rectangles. Tooltips display the exact population values.

AI-generated description

A demonstration of how to start using D3 version 6.