barGraph
✓ Published0🌍 Public
This bar chart displays the 2022 population of countries. The visualization includes interactive buttons to sort the bars in ascending or descending order. The chart is rendered as an SVG using D3.js, with axes and bars generated through D3's `scaleBand` and `scaleLinear` scales, and axis functions `d3.axisLeft` and `d3.axisBottom`. Data is loaded from a local CSV file, and a tooltip showing country name and population appears on mouse 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