Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Scatter Plot

Public visualization

Viewing a saved revision (read-only)

4e85f1eab9cf47e4b670e491a36c55f6

Cars Scatter Plot

0 stars1🌍 Public
GGino Dzin
Last edited Feb 14, 2020
Created on Feb 14, 2020
Forked from Scatter Plot

This scatter plot from the auto-mpg dataset visualizes the relationship between horsepower and weight for various car models, with each car represented as a red, semi-transparent circle. D3.js v5’s scaleLinear and extent functions map data values to SVG coordinates, while axisBottom and axisLeft create labeled axes with gridlines via tickSize. The code loads CSV data from VizHub, converts numeric fields, and appends circles using enter selections, with styled SVG text for axis labels and the chart title.

AI-generated description