🌍 Public
Viewing a saved revision (read-only)
8f01c7b3ec0042efb63f88da7ae5220c
Reusable Scatter plot
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