Skip to main content
100%

D3-3: Scatterplot

✓ Published1🌍 Public
Bbkopruluoglu3
Last edited Aug 18, 2023
Created on Dec 29, 2022
Forked from D3-2: Bar chart

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

Similar vizzes