🌍 Public
Viewing a saved revision (read-only)
07fd822b4be64ced9a9aecc8f83f9080
Adding Style to Bar Chart
A horizontal bar chart displays United Nations population data for ten countries in 2020, with country names on the y-axis and population values on the x-axis. Built with React and D3 v7, it uses `scaleBand` for the categorical axis and `scaleLinear` for the numeric scale. SVG rectangles render each bar, while custom `AxisBottom` and `AxisLeft` components generate ticks and labels. The data loads asynchronously via D3's `csv` parser from a GitHub-hosted CSV file.
AI-generated descriptionUses React to render data