Skip to main content
100%

Assignment_6_Task1Q2

✓ Published0🌍 Public
Ddineshnimmagadda1@gmail.com
Last edited Apr 5, 2025
Created on Apr 5, 2025
Forked from Hello VizHub

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
MIT Licensed

Similar vizzes