🌍 Public
Viewing a saved revision (read-only)
e450eaabd1ba4b75a8fa824ecf18fe15
Activity-6-q1.1
This bar chart displays the population of ten countries in the year 2000, using horizontal bars ordered by country name. The visualization is built with React and D3 v5, employing `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the numeric x-axis. Data is loaded from a CSV file via `d3.csv`, with population values parsed as numbers. SVG rectangles render the bars, while custom `AxisBottom` and `AxisLeft` components create the axes, and text labels are formatted using `d3.format`.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.