Assignment_6_Task1Q2
✓ Published0🌍 Public
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 descriptionMIT Licensed