🌍 Public
Fork of Viz 1
This visualization presents a scatter plot comparing population density and median age across countries. It loads country data from a merged JSON dataset and renders each entry as a circle, colored steelblue and turning orange on hover. The implementation uses d3.json to fetch data, d3.scaleLinear for both axes, and d3.axisBottom/axisLeft with rotated tick labels. Interactive tooltips appear on mouseover using D3 transitions, displaying country name, population density, and median age. The SVG rendering includes custom axis styling with hidden domain lines and labeled axes for clarity.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.