Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Question 4

Public visualization

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.

Comments

Sign in to join the discussion.

MIT Licensed