Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of barGraph

Public visualization

Fork of barGraph

0 stars0🌍 Public
Zzeyneb.mhamedi@gmail.com
Last edited Mar 31, 2023
Created on Mar 31, 2023
Forked from barGraph

This visualization combines a bar chart and scatter plot overlay to display 2022 population data for countries, with each circle positioned atop its corresponding bar to highlight population values. Users can sort the data ascending or descending via buttons, triggering animated transitions. The chart uses D3 v5 with `scaleBand` and `scaleLinear` axes, `axisLeft` with negative tick sizes, and `transition` for smooth updates. Data comes from a CSV file, rendered as SVG with tooltips showing country and population on mouseover.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed