Cars Scatter Plot
✓ Published1🌍 Public
This scatter plot visualizes the relationship between horsepower and weight for a dataset of cars from 1970, sourced from auto-mpg.csv. Each circle represents a car, with its position determined by the car’s horsepower on the x-axis and weight on the y-axis, using D3’s `scaleLinear` for both axes. The visualization is rendered as SVG within a 1000x500 canvas, with axes and labels created via `axisBottom` and `axisLeft`. Data is loaded asynchronously using D3’s `csv` function, and values are converted to numbers before plotting. Styling is applied via CSS, giving circles a semi-transparent steelblue fill.
AI-generated descriptionMIT Licensed