Skip to main content
100%

Scatter Plot!

✓ Published0🌍 Public
SSuzizaher
Last edited Jun 16, 2022
Created on Jun 16, 2022
Forked from Making a Bar Char!

This scatter plot displays the relationship between horsepower and weight for cars from the auto-mpg dataset. The visualization uses red semi-transparent circles positioned on a Cartesian grid with labeled axes and gridlines. The code leverages D3 v5’s `scaleLinear`, `axisBottom`, `axisLeft`, and `csv` to load data, scale quantitative values, and render SVG elements. Data is fetched from a VizHub-hosted CSV file and parsed before being joined to circle elements using D3’s enter selection.

AI-generated description

Cars scatter plot!

MIT Licensed

Similar vizzes