🌍 Public
Fork of barGraph
This bar chart displays the 2022 population for countries worldwide, with bar height mapped to population values and blue circles marking each data point. Users can re-sort the countries in ascending or descending order via two buttons. Built with D3 v5, the visualization uses `scaleBand` and `scaleLinear` for axes, `transition()` for animated updates, and `mouseover` events to show population details in a tooltip. Data comes from a CSV file containing population figures across multiple decades. The SVG rendering includes rotated country labels for readability.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.