Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Scatter Plot

Public visualization

Cars Scatter Plot

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed