🌍 Public
Viewing a saved revision (read-only)
1f48b4ef887f4127958fd681f9aac174
Activity-7Q1
This visualization displays World Bank data for the most recent year in the dataset, using horizontal bars to compare GDP across countries. The chart renders as an SVG using D3 v7, with a linear scale for GDP values and a band scale for country names. It loads CSV data asynchronously via `d3.csv`, filters for the latest year using `d3.max`, and draws axes with `d3.axisBottom` and `d3.axisLeft`. Bars are colored teal and sized by GDP, with tick formatting applied via `d3.format`.
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.