Skip to main content
100%

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

✓ Published1🌍 Public
SSheshidharreddy
Last edited Mar 1, 2022
Created on Mar 1, 2022

This chart displays the top 10 most populous countries in 2019 as a horizontal bar chart, ranking them by population value. The visualization uses React functional components with the useState and useEffect hooks to fetch CSV data, while D3’s scaleBand and scaleLinear handle the spatial mapping of country names and population counts to SVG rectangles. Rendering occurs as pure React elements, with D3’s axis utilities replaced by manually drawn tick lines and labels. The x-axis scale is derived from the maximum population in the dataset, and the chart updates dynamically after the CSV loads.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes