activity 6
✓ Published0🌍 Public
This bar chart displays the 2020 population estimates for 30 countries, ordered by country name on the vertical axis and population magnitude on the horizontal axis, with formatted tooltips showing values in billions. The visualization is built using React, which renders SVG elements directly, and D3 v5 for data loading and scaling, specifically `d3.csv` to parse the remote dataset, `d3.scaleBand` for the categorical y-axis, `d3.scaleLinear` for the numeric x-axis, and `d3.format` for tick label abbreviation. Static axes and rectangular marks are generated through custom local ES6 modules, with styling applied via CSS classes.
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