Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Starter - Creating Cars scatterplot

Public visualization

D3 Starter - Creating Cars scatterplot

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

Comments

Sign in to join the discussion.

MIT Licensed