Skip to main content
100%

Reusable Scatter plot

✓ Published0🌍 Public
SSreedevi Itta
Last edited Oct 24, 2025
Created on Oct 24, 2025

A reusable scatter plot displays the relationship between horsepower and miles per gallon for the Auto MPG dataset, filtering out records with missing values. The D3 v7 component uses a configurable factory pattern with getter-setter methods for width, height, margins, radius, and fill color, applied via selection.call(). Linear scales map the data extent to the SVG canvas, with circles rendered through a data join and axes drawn using axisLeft and axisBottom. The chart includes textual labels for both axes and a title.

AI-generated description
MIT Licensed

Similar vizzes