Skip to main content
100%

Activity6_q3

✓ Published1🌍 Public
FFayezuddin Mohammed Khan
Last edited Nov 2, 2025
Created on Nov 2, 2025
Forked from HTML Starter

This scatter plot visualizes the relationship between horsepower and miles per gallon (MPG) for vehicles in the Auto MPG dataset, with points colored by region of origin (USA, Europe, Japan). It uses d3.csv to load the data, d3.scaleLinear for positioning both axes, and d3.scaleOrdinal for categorical color mapping. The SVG rendering includes axis labels, a legend, and circles with opacity, all generated using D3 v7 selections and the axisBottom and axisLeft components.

AI-generated description
MIT Licensed

Similar vizzes