Activity6_population-2010
✓ Published0🌍 Public
This bar chart displays the populations of 20 countries in 2010, with countries listed on the vertical axis and population values (formatted in billions) on the horizontal axis. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis, `scaleLinear` for the numeric x-axis, and SVG `<rect>` elements for bars. The data is loaded from a CSV file via `d3.csv`, with the population column converted from a string to a number by multiplying by 1000.
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