🌍 Public
Viewing a saved revision (read-only)
d8ab306e04b146f48ac54a7ae29ed588
Assignment_6_Task1Q2
This chart displays a vertical bar chart comparing the 2010 population of 20 countries, sorted in descending order. The React component uses D3 version 5’s `scaleBand` for the y-axis categories and `scaleLinear` for the x-axis value scale, rendering SVG rectangles via `Marks.js`. Tick marks and labels are generated by custom `AxisBottom` and `AxisLeft` components using D3’s `.ticks()` and `.domain()` methods. Data is loaded asynchronously from a CSV file using `d3.csv`, and tooltips show compact population values via `Intl.NumberFormat`.
AI-generated description