Cars Scatter Plot
✓ Published1🌍 Public
A scatter plot visualizes the relationship between horsepower and weight for 406 car models from the classic 1970s and 1980s dataset. Each circle represents a car, with its position determined by the car's horsepower on the x-axis and weight on the y-axis. The visualization uses d3.csv to load data from a local CSV file, d3.scaleLinear and d3.extent for scaling, and d3.axisBottom and d3.axisLeft to render axes with grid lines. The code leverages D3 v5 selections and data joins to draw semi-transparent SVG circles with a steelblue fill, displaying a clear positive correlation between the two variables.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed