🌍 Public
Viewing a saved revision (read-only)
012d21855f474c5599ac37f1c8e2bbe5
Activity 7
A horizontal bar chart displays population figures for 2020, with country names on the y-axis and numerical values on the x-axis. Built with React and D3 v5, the visualization uses `d3.scaleBand` for the categorical axis, `d3.scaleLinear` for the quantitative axis, and SVG rendering. Data is loaded asynchronously via a custom `useData` hook, and tick labels are formatted using `d3.format`. Axis components and marks are separated into modular React components for clarity.
AI-generated descriptionA demonstration of how to start using D3 version 6.