🌍 Public
Viewing a saved revision (read-only)
63a7d6b70e764eb280a1ffaef4e98af6
Scatter Plot
This horizontal bar chart ranks the ten most populous countries, with bars extending proportionally to each nation’s population. The chart uses D3 v6 scales (`scaleLinear` for the x-axis and `scaleBand` for y-axis categories) rendered as SVG rectangles. Axes are customized with D3’s `axisBottom` and `axisLeft`, including a custom tick formatter that abbreviates large numbers (e.g., “1.38B”). Data is loaded from a CSV via `csv()` and parsed with unary plus operators.
AI-generated descriptionReact Starter code.