Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars scatter plot

Public visualization

Cars scatter plot

0 stars2🌍 Public
Ddavidpiber
Last edited Feb 9, 2020
Created on Nov 19, 2019
Forked from Customizing Axes

This scatter plot displays the relationship between horsepower and weight for a dataset of cars, sourced from an auto-mpg CSV file. Each car is represented as a semi-transparent red circle, with its position determined by these two quantitative variables. The visualization uses D3 v5, specifically the `scaleLinear`, `axisBottom`, and `axisLeft` APIs to construct the axes and grid lines, while the SVG rendering is handled through the D3 `select` and `append` methods. Axis labels and a title are styled via CSS, and the data values are coerced to numeric types before being plotted.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed