Skip to main content
100%

Bar Chart 1

✓ Published0🌍 Public
AAndres Perdomo
Last edited Nov 6, 2023
Created on Nov 6, 2023
Forked from HTML Starter

This bar chart displays the top 10 countries by their 2020 population, with each country’s population represented by a horizontal bar’s length. The visualization uses React’s `useState` and `useEffect` hooks to asynchronously load CSV data, while d3’s `csv` parser and `scaleBand`/`scaleLinear` functions map country names and population values to screen coordinates. The bars are rendered as SVG `<rect>` elements, with the data sourced from a GitHub Gist and displayed once loading completes.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes