Cars Scatter Plot
This scatter plot visualizes the relationship between vehicle horsepower and weight, with circle radius encoding miles per gallon (mpg). The chart uses D3 version 5 APIs including `scaleLinear`, `axisBottom`, `axisLeft`, and `extent` to map the auto-mpg dataset. Points are rendered as semi-transparent steelblue circles over a grid with labeled axes. The code demonstrates custom axis styling—removing domain lines, adjusting tick sizes, and adding rotated axis labels—through direct SVG manipulation.
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. It also demonstrates customization of D3 axes.
See also the first bar chart visualization that this one builds on: Making a Bar Chart.