Cars Scatter Plot
✓ Published0🌍 Public
A scatter plot displays the relationship between horsepower and weight for individual car models, with each red semi-transparent circle representing a vehicle from the auto-mpg dataset. The visualization uses D3.js version 6 with SVG rendering, employing `scaleLinear` for both axes to map the continuous data values. The code implements `axisBottom` and `axisLeft` for the tick marks, and `extent` to calculate the domain from the data. Axes labels and a title are positioned within the SVG using margin conventions.
AI-generated descriptionThe data comes from the year 2018 estimate in World Population Prospects 2017.
MIT Licensed