Cars Scatter Plot
✓ Published1🌍 Public
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 descriptionMIT Licensed