Fork of MIAGE base
✓ Published1🌍 Public
A bar chart displays the 2022 population for countries worldwide, sorted alphabetically by country name along the x-axis. The chart reads population data from a local CSV file and renders it as SVG rectangles using D3 v4. The y-axis uses a linear scale, and the x-axis is a band scale with rotated labels for readability. A button triggers sorting of the bars by country name.
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