🌍 Public
Viewing a saved revision (read-only)
eb70e660b43a479f8a8df4f10504d81b
Refactored Bar Chart
This example shows a horizontal bar chart of the ten most populous countries in 2020, ordered by country name. Each bar’s length encodes population, with a left axis labeling countries and a bottom axis showing population values. The visualization is built with React and D3 v6, using `scaleBand` and `scaleLinear` to map data to SVG rectangles, with custom `AxisBottom`, `AxisLeft`, and `Marks` components. The data is loaded from a CSV URL via D3’s `csv` function.
AI-generated descriptionLoad data about named colors with React and D3