🌍 Public
Viewing a saved revision (read-only)
c1e890a59284404e940dc85d1cf7177b
Fork of Scatter Plot Reusable - ICE7
A reusable scatter plot shows the relationship between car weight and horsepower, using a dataset loaded from a CSV file. The chart is built with D3 v7 and rendered as SVG, with axes labeled accordingly. The code defines a `scatterPlot` function that configures accessor functions for the x and y data fields, and the chart is instantiated and applied to an SVG element using `d3.select` and the chart's `.data()` method.
AI-generated description