Skip to main content
100%

ICE-7 Harshith Mullapudi

✓ Published0🌍 Public
HHarshithmullapudi@my.unt.edu
Last edited Oct 25, 2025
Created on Oct 25, 2025

This scatter plot shows the relationship between horsepower and miles per gallon for a small set of six cars, using a reusable chart function built with D3.js v7. The SVG rendering includes linear scales for both axes, axis labels, and semi-transparent steelblue circles. The code demonstrates a custom `scatterPlot()` function that returns a chart closure, handling margins, scales, and axes internally, then applies it via `selection.datum()` and direct function invocation. The dataset is embedded in the script, and the visualization explicitly labels its axes with “Horsepower” and “Miles per Gallon.”

AI-generated description
MIT Licensed

Similar vizzes