🌍 Public
Viewing a saved revision (read-only)
cdb1c2db0b9f4db99651d67e20cfcc05
Cars Scatter Plot
This scatter plot visualizes the relationship between horsepower and weight for cars from the auto-mpg dataset, with each red semi-transparent circle representing a vehicle. The visualization uses D3 v7’s `scaleLinear`, `axisLeft`, and `axisBottom` to map the data, with gridlines and axis labels generated via the `tickSize` and `tickPadding` options. The code loads CSV data asynchronously, converts numeric fields, and renders the SVG circles with opacity to show density. Titles and axis annotations are added as SVG text elements, while the axes’ domain lines are removed for a cleaner presentation.
AI-generated description