Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Jbt Scatter Plot

Public visualization

Viewing a saved revision (read-only)

88fc3bfd9f10457c8a14cf11e1c6ffd2

Cars Jbt Scatter Plot

0 stars0🌍 Public
NNemastoja
Last edited Feb 7, 2021
Created on Feb 7, 2021

This scatter plot displays the relationship between vehicle weight and horsepower using the classic auto-mpg dataset, with large green circles marking each car. The visualization uses D3 v5’s `scaleLinear`, `axisBottom`, and `axisLeft` to construct axes with gridlines, while `extent` sets the domains. Data is loaded via `csv` from a remote URL and rendered as an SVG. Custom labels and a title are added, and the code formats tick values using `format` with a '.1s' specifier.

AI-generated description