Skip to main content
100%

Cars Scatter Plot

✓ Published1🌍 Public
Xxychen0612.cs09@nycu.edu.tw
Last edited Sep 20, 2023
Created on Sep 20, 2023
Forked from 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
MIT Licensed

Similar vizzes