🌍 Public
Viewing a saved revision (read-only)
ac379a7b79f04417840c846df9d7a4e7
Fork of 6th visualisation 1
This scatter plot visualizes the relationship between population and GDP across countries, with each point colored by region and interactive tooltips showing country details. It uses D3 v7 to load CSV data from a GitHub repository, then renders an SVG chart with linear scales for both axes and an ordinal color scale based on region_id. The code employs d3.csv, d3.scaleLinear, d3.scaleOrdinal, d3.axisBottom, and d3.axisLeft to construct axes, circles, and a categorical legend, all within a responsive layout.
AI-generated descriptionA responsive scatter plot.