Fork of Activity6_Task1
✓ Published0🌍 Public
This horizontal bar chart displays the top 20 countries by 2010 population, with country names on the y-axis and population values on the x-axis. The visualization is built with React and D3 v5, using `scaleBand` and `scaleLinear` for positioning and `csv` to load data from a GitHub-hosted CSV file. SVG rectangles represent each country, with tooltips showing formatted population values via D3’s `format` function. Axes are custom-rendered components, and the data is processed by converting the 2010 values from thousands to raw numbers before slicing the dataset.
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.
MIT Licensed