🌍 Public
Viewing a saved revision (read-only)
ac59cfed7f0f47538d625e76be9c24dc
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 descriptionAn example showing the capabilities of VizHub using d3