Task 8-Q1A
This bar chart displays the top 10 countries by population in the year 2000, with country names on the y-axis and population values on the x-axis. The visualization uses React with D3 v5 scales and SVG rendering. Categories are sorted by population on a linear scale, with bars extending from a common left baseline. The code employs `scaleBand` for the categorical axis, `scaleLinear` for the quantitative axis, and custom React components (`AxisBottom`, `AxisLeft`, `Marks`) to render ticks and rect marks. Data originates from a CSV file, formatted with SI-prefix labels (e.g., "B" for billions).
AI-generated descriptionI have listed the 10 countries from the year 2000 in bar chart where the countries are visualized on the y – axis and the population – 2000 is seen on the x – axis.