Skip to main content
100%

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

✓ Published1🌍 Public
PPujitha14challagulla
Last edited Jun 25, 2022
Created on Jun 25, 2022

This example displays a horizontal bar chart of the ten most populous countries, ranking them by their 2019 population figures. The visualization uses React hooks to fetch and manage CSV data via `d3.csv`, while rendering rectangles and axes as SVG elements. D3’s `scaleBand` and `scaleLinear` map country names and population values, with custom tick marks drawn through explicit loops rather than axis components. The code imports `axisLeft` and `axisBottom` but does not use them, instead manually positioning labels and lines for a lightweight, instructional implementation.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes