Activity6_Que1_1
✓ Published1🌍 Public
This visualization displays the top 10 countries by population in the year 2000 as a horizontal bar chart rendered with SVG. React manages the component state while D3 v5 handles data loading via `d3.csv` and scales including `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. Population values are formatted using `d3.format` with a custom tick formatter that converts gigabytes to billions. Bars are generated as SVG `rect` elements with tooltips showing formatted values, and the chart includes labeled axes with gridlines and a custom Poppins font.
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