Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Scatterplot

Public visualization

Viewing a saved revision (read-only)

017e48f7371f484db7d39f8075a0ab46

Cars Scatterplot

0 stars0🌍 Public
JJadeITNT
Last edited Dec 1, 2021
Created on Nov 19, 2021
Forked from Scatterplot

This scatterplot displays the relationship between vehicle weight and horsepower for a dataset of cars, with each circle representing an individual car. The visualization uses D3 v7 to load the auto-mpg CSV data, then employs `scaleLinear`, `axisBottom`, and `axisLeft` to construct the axes. The code renders SVG circles with a red fill and 50% opacity, while library functions like `extent` and `nice` help determine the scales. Title and axis labels are added directly to the SVG group elements.

AI-generated description