Scatter Plot
✓ Published1🌍 Public
This scatter plot displays the populations of the ten most populous countries, with each country positioned along the y-axis and its population scaled along the x-axis. The visualization uses d3.csv to load the data, d3.scalePoint for the categorical country axis, and d3.scaleLinear for the population values. Circles are rendered as SVG elements, with grid lines extending across the plot from tick marks. The code applies a custom tick formatter using d3.format to abbreviate large numbers, and follows the Sunlight Foundation color and style guidelines for the chart’s typography and grid styling.
AI-generated descriptionNOTES:
- For color scheme, visit https://sunlightfoundation.com/2014/03/12/datavizguide/ or https://github.com/amycesal/dataviz-style-guide/blob/master/Sunlight-StyleGuide-DataViz.pdf to github
MIT Licensed