activity 6_Task 1
✓ Published0🌍 Public
This bar chart displays the population of ten countries in the year 2000, using horizontal bars ranked by value. The visualization uses React with D3 v5, rendering as an SVG. The `Marks` component creates rectangles whose width is scaled by population, while the `AxisBottom` and `AxisLeft` components generate tick marks and labels. Data is loaded via the `csv` API from a remote URL, with population computed by multiplying the 2000 column by 1000. The `scaleBand` and `scaleLinear` functions map countries and populations to screen coordinates, and formatted tick labels replace 'G' with 'B' for billions.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed