🌍 Public
Viewing a saved revision (read-only)
be1988a9fdf54623bd4acf63495c95b2
D3 Starter - Creating Cars scatterplot
This scatterplot charts car weight against horsepower, with each car represented as a translucent red circle. The data is loaded from the Plotly auto-mpg dataset and parsed as numeric values before rendering. The visualization uses D3 v5’s `select`, `csv`, `scaleLinear`, `axisLeft`, `axisBottom`, `format`, and `extent` APIs to construct the SVG chart, including labeled axes and a title. Axis grids and tick marks are styled via CSS, while the plot area is sized using computed margins.
AI-generated descriptionThis scatterplot shows attributes of cars dataset.