Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Fork of ICE-6: Rendering Marks and Channels with React & D3

Public visualization

Viewing a saved revision (read-only)

72e01223d10447ceb3566eed85d58e75

Fork of Fork of Fork of ICE-6: Rendering Marks and Channels with React & D3

0 stars0🌍 Public

A horizontal bar chart displays the population of the top 10 most populous countries in 2019, drawn as SVG rectangles within a React component. The code uses React hooks (`useState`, `useEffect`) to load data from a CSV via `d3.csv`, then scales it with `d3.scaleBand` and `d3.scaleLinear`. Custom tick marks and grid lines are rendered manually with SVG elements, and bars are positioned using the scales' domains and ranges.

AI-generated description

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

See also React Starter.