Skip to main content
100%

Barchart step 2

✓ Published1🌍 Public
Ccaineosborne
Last edited Jan 14, 2022
Created on Jan 14, 2022
Forked from Barchart step 1

This bar chart displays the top 10 countries by population for 2020, using data from a UN Population dataset loaded via d3.csv. The visualization shows horizontal bars with a linear x-scale for population values and a band y-scale for country names, including gridlines and tick labels. React state manages the async data loading, while d3.scaleBand and d3.scaleLinear compute the chart geometry. The SVG is rendered by React, with d3 utilities generating tick positions and bar widths.

AI-generated description

A program that loads in some data about CSS named colors using d3 utilities, and uses React state to keep track of the data.

MIT Licensed

Similar vizzes