🌍 Public
Viewing a saved revision (read-only)
4e85f1eab9cf47e4b670e491a36c55f6
Cars 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