Skip to main content
100%

Fork of Scatter Plot Reusable - ICE7

✓ Published1🌍 Public
118121a1545
Last edited Oct 24, 2025
Created on Oct 24, 2025

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
MIT Licensed

Similar vizzes