Cars
✓ Published1🌍 Public
This scatterplot displays the relationship between horsepower and weight for a dataset of cars, with each point representing an individual vehicle. The visualization uses D3’s `scaleLinear` and `extent` functions to map the data to pixel coordinates, with axes generated using `axisBottom` and `axisLeft`. Circles are appended to an SVG element with a semi-transparent steelblue fill, while axis labels and a title are added as text elements. The data is loaded from a CSV file via D3’s `csv` method and rendered with a margin-based layout.
AI-generated descriptionMIT Licensed