Skip to main content
100%

D3 Starter - Creating Cars scatterplot

✓ Published1🌍 Public
Mmaxthamt
Last edited Mar 21, 2021
Created on Mar 21, 2021

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 description

This scatterplot shows attributes of cars dataset.

MIT Licensed

Similar vizzes