Activity 7
✓ Published0🌍 Public
This bar chart displays the 2010 populations of ten countries, sorted alphabetically by country name. Each bar’s length is proportional to the population value, with a custom tooltip showing the formatted number. The visualization is rendered as an SVG using React, with D3 v5’s `scaleBand` for the categorical y-axis, `scaleLinear` for the numeric x-axis, and `format` to abbreviate large numbers. Data is loaded asynchronously from a remote CSV file via the `csv` function.
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