Skip to main content
100%

Fork of barGraph

✓ Published0🌍 Public
JJShellBach
Last edited Nov 17, 2022
Created on Oct 3, 2022
Forked from barGraph

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 description
MIT Licensed

Similar vizzes