Scatter Plot
✓ Published0🌍 Public
This scatter plot shows the population of nine South Asian countries, with each circle’s horizontal position encoding population size and its vertical position arranged by country name. The code loads data from a CSV file using `d3.csv`, then applies `d3.scaleLinear` for the x-axis and `d3.scalePoint` for the y-axis, rendering circles as SVG elements. Axes are generated with `d3.axisBottom` and `d3.axisLeft`, while population values are formatted with `d3.format` to abbreviate large numbers. The visualization uses a fixed 960×500 SVG canvas with custom margins and styled tick labels.
AI-generated descriptionMIT Licensed