TP1_2
✓ Published2🌍 Public
A bar chart displays each country's 2022 population, sorted in ascending order by default. A button-click re-sorts the chart in descending population order. The visualization uses D3.js v5 APIs including `scaleBand`, `scaleLinear`, `axisLeft`, `axisBottom`, and `csv` to load data from a CSV file. The SVG rendering includes interactive tooltips that show country name and population on mouseover. Data comes from a world population dataset for 2022.
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