Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_q3

Public visualization

Viewing a saved revision (read-only)

1d97c4b5001847bdb63ee843a6965183

Activity6_q3

0 stars1🌍 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