Activity6_task1_question_2
✓ Published0🌍 Public
This visualization displays the population of 20 countries in 2010 as a horizontal bar chart, sorted by country name along the y-axis with population magnitude on the x-axis. The chart uses a linear scale for population and a band scale for categorical countries. Built with React and D3 v5, it utilizes SVG rendering, with `scaleBand` for the y-axis, `scaleLinear` for the x-axis, and loads data from a CSV URL parsed via `d3.csv`. The bars are colored light green, and axis tick labels are styled with blue lines.
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