Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

world pop

Public visualization

Viewing a saved revision (read-only)

c4204b742a714ef6834219039bf5e0e7

world pop

0 stars0🌍 Public
Mmarianamartins87
Last edited Mar 6, 2021
Created on Mar 6, 2021

This example visualizes world population data from a CSV file, displaying each country as a horizontal bar whose width corresponds to its population. The visualization uses React to manage state and render SVG elements, with D3’s `scaleBand` and `scaleLinear` mapping country names to vertical positions and population values to bar widths. Data loads asynchronously via `d3.csv`, and the chart updates dynamically once the dataset is fetched.

AI-generated description

a program that loads some data about css named colors uses react to render data