Activity6-question 1.2
✓ Published0🌍 Public
This horizontal bar chart displays the population of 20 countries in 2010. The visualization sorts countries along the y-axis using a band scale, with bar lengths proportional to population values on a linear x-axis. Built with React and D3 v5, the example loads CSV data and renders an SVG using local ES6 modules for axes and marks. Custom tick formatting converts large numbers to abbreviated “B” notation for billions, and tooltips show formatted values on hover.
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