Activity 6.12
✓ Published1🌍 Public
This bar chart displays the population of 20 countries in 2010, ordered along a vertical axis with horizontal bars extending from a shared baseline. The visualization uses React to render SVG elements, with D3's `scaleBand` and `scaleLinear` mapping country names and population values to pixel coordinates. Axes are drawn using custom `AxisBottom` and `AxisLeft` components, while the `Marks` component generates rectangles with native SVG tooltips. Data is loaded asynchronously from a CSV file via `d3.csv`, with population values converted from thousands using D3's `format` helper.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed