Viewing a saved revision (read-only)
74d178231e2f4c6f85f8469d3dbf148b
Ordinal Scatter Plot
This ordinal scatter plot displays the population of the top 10 most populous countries, using a vertical categorical scale for country names and a linear scale for population values. The chart renders circles in SVG, with highlights on China and India as the largest entries. It loads data from a local CSV file and builds axes using d3.axisLeft and d3.axisBottom, with d3.scalePoint for the ordinal positioning and d3.scaleLinear for the numeric mapping. Tick labels are formatted with d3.format to abbreviate large numbers.
AI-generated descriptionThis bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017.