d3 Starter cars scatter plot
This scatter plot visualizes cars from the UCI Machine Learning Repository’s Auto MPG dataset, mapping horsepower on the x-axis against weight on the y-axis. Each red, semi-transparent circle represents a vehicle, with axes labeled explicitly and a title noting “Cars : Horsepower vs. Weight.” The code uses d3.csv to load data, d3.scaleLinear with .nice() for scaling, and d3.axisLeft and d3.axisBottom for tick marks, with custom tick sizing and padding. Axis labels and title are appended as SVG text elements, while circles are added via data joins.