Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars ScatterPlot

Public visualization

Viewing a saved revision (read-only)

d5eaeef90cb246fbb34aa6d652b0bb44

Cars ScatterPlot

0 stars1🌍 Public
Ggabrielribeirob
Last edited Sep 2, 2021
Created on Sep 1, 2021

This visualization displays a scatterplot of cars, mapping horsepower on the x-axis against weight on the y-axis, with each vehicle represented by a semi-transparent red circle. The chart includes labeled axes, tick marks, and a title, providing a clear view of the correlation between these two attributes. The code uses D3 v7, leveraging `scaleLinear`, `extent`, `axisBottom`, and `axisLeft` to construct the scales and axes, while `csv` loads the auto-mpg dataset from a remote URL. SVG circles are appended and positioned using the scaled x and y values, with styling applied via external CSS.

AI-generated description

A demonstration of how to start using D3 version 6.