🌍 Public
Scatter Plot with D3.js
This scatter plot visualizes the top 10 most populous countries, with each circle’s horizontal position encoding population count and vertical position indicating country name. The chart uses a linear scale for population and a point scale for countries, with grid lines extending across the plot. Built with D3.js (v5), the code loads data from a CSV file, formats axis tick labels using `format('.3s')`, and renders the visualization as SVG elements. The title and axis labels are styled through CSS, and the axes are customized using `axisBottom` and `axisLeft`.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.