Skip to main content
100%

Cars Scatter Plot

✓ Published0🌍 Public
MMiish84
Last edited Apr 7, 2020
Created on Apr 7, 2020
Forked from Customizing Axes

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 description

This 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.

MIT Licensed

Similar vizzes