Skip to main content
100%

Cars Scatter Plot

✓ Published0🌍 Public
Ssteveaigbe
Last edited Nov 18, 2020
Created on Nov 18, 2020
Forked from Customizing Axes

A scatter plot displays the relationship between horsepower and weight for individual car models, with each red semi-transparent circle representing a vehicle from the auto-mpg dataset. The visualization uses D3.js version 6 with SVG rendering, employing `scaleLinear` for both axes to map the continuous data values. The code implements `axisBottom` and `axisLeft` for the tick marks, and `extent` to calculate the domain from the data. Axes labels and a title are positioned within the SVG using margin conventions.

AI-generated description

The data comes from the year 2018 estimate in World Population Prospects 2017.

MIT Licensed

Similar vizzes