Fork of Bar chart with margin convention
✓ Published0🌍 Public
This fork of a bar chart displays the top 10 countries by population for 2020, using horizontal bars ranked from largest to smallest. The visualization loads CSV data from a GitHub gist and renders it as SVG rectangles within a specified margin convention. Built with React and D3 v7, the code uses `scaleBand` for the y-axis, `scaleLinear` for the x-axis, and `max` to determine the domain. The React `useState` and `useEffect` hooks manage asynchronous data loading, while SVG `<rect>` elements are mapped within a translated group to respect the margins.
AI-generated descriptionA progran that follows our mouse.
MIT Licensed