D3-3: Scatterplot
✓ Published1🌍 Public
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 descriptionMIT Licensed