BarChart TD1 (Bouton ne marche pas)
✓ Published0🌍 Public
A bar chart displays the 2022 population of countries from a CSV dataset, with bars labeled by country name. The visualization includes sorting buttons that attempt to reorder bars by ascending or descending population, though the interaction is broken due to improper data binding on updates. Built with D3 v5, it uses `scaleBand`, `scaleLinear`, `axisBottom`, and `axisLeft` to render SVG rectangles, with tooltips showing country and population 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