Making a Scatter Plot
✓ Published1🌍 Public
This example shows a scatter plot of the top ten most populous countries, with population on the x-axis and country names on the y-axis. It uses D3 v5’s `scaleLinear`, `scalePoint`, `axisLeft`, and `axisBottom` APIs to map the data from `data.csv` into SVG circles. The chart includes gridlines, axis labels, and a title, with population values formatted in billions using D3’s `format('.3s')`.
AI-generated descriptionMaking a Scatter Plot
MIT Licensed