🌍 Public
Viewing a saved revision (read-only)
6168f3835b684b6581db2054c7e75880
D3-3: Scatterplot
This scatterplot visualizes the relationship between horsepower and weight for a dataset of automobiles. The SVG rendering uses D3 v7’s `scaleLinear`, `axisBottom`, and `axisLeft` to map the numeric values and draw labeled axes with grid lines. Data is loaded from a CSV file via D3’s `csv` method, with all values converted to numbers before plotting circles at each point. The chart applies a fixed margin and uses `selectAll` and `enter` to bind data to the SVG circle elements.
AI-generated description