🌍 Public
Viewing a saved revision (read-only)
9ffb9629747e4d46a89491f2116b8dfb
Rendering Data with React & D3
A horizontal bar chart displays the populations of ten countries for 2020, sourced from UN population data loaded via `d3.csv`. The chart renders as SVG using React components, with a `scaleBand` for the y-axis country names and a `scaleLinear` for the x-axis population values. Bars are generated through the `BarRect` component, each filled with random RGB colors, while custom `AxisBottom` and `AxisTop` components draw tick marks and labels, with population formatted in billions using `d3.format`.
AI-generated descriptionHalf way towards a smiley face.