Fork of barGraph
✓ Published0🌍 Public
This bar chart displays the 2022 population for each country, sourced from a CSV file with population data from 1970 to 2022. Users can reorder the bars by clicking the "Ascending" or "Descending" buttons, which re-sort the data and trigger transitions that animate the repositioned rectangles. The chart is built with D3.js (v5), using `csv`, `scaleBand`, `scaleLinear`, `axisBottom`, `axisLeft`, and the `transition().duration(500)` method for animated updates, rendered as an SVG.
AI-generated descriptionMIT Licensed