ACT 6 T1
✓ Published0🌍 Public
This visualization displays the 2020 population estimates for 30 countries using a horizontal bar chart. Built with React and rendered as an SVG, it loads population data from a CSV file and uses D3's `scaleBand` and `scaleLinear` to map countries and population values to coordinates. The chart features blue tick lines, gray labels, and green bars, with hover tooltips showing formatted population values in billions. The code demonstrates local ES6 module imports for axes and marks, along with D3's `csv` loader, `format` for number formatting, and `max` for domain calculation.
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