Skip to main content
100%

ice

✓ Published1🌍 Public
Ppavankalyan1507
Last edited Mar 6, 2022
Created on Mar 6, 2022

This visualization displays the top 20 countries by population as a horizontal bar chart, with each bar’s length proportional to the population value. The chart uses React hooks (useState, useEffect) to load and parse CSV data via d3.csv, transforming the “1/28/20” field into a numeric population. It employs d3.scaleBand for the categorical y-axis and d3.scaleLinear for the quantitative x-axis, rendering SVG rectangles and axis tick lines directly through React’s declarative JSX. The data comes from a GitHub Gist CSV file, and the visualization is built with D3 v5 and React 17.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes