Activity6_Question1.2
✓ Published0🌍 Public
This horizontal bar chart displays the population of 20 countries as of 2010, sorted by country name. The visualization uses React with D3 v5 to render SVG elements, employing `scaleBand` for the y-axis, `scaleLinear` for the x-axis, and custom axis components. Data is loaded asynchronously from a remote CSV file using D3’s `csv` function, with tooltips formatted using `format('.2s')` to display values in billions. The chart is styled with Poppins font and orange bars, demonstrating local ES6 module imports and D3’s UNPKG distribution.
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