Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity-6_3

Public visualization

Viewing a saved revision (read-only)

da5f3ca206414b2180b2e1c6bbad1dbc

Activity-6_3

0 stars1🌍 Public
MMdAfikurRahmanKhan@my.unt.edu
Last edited Nov 17, 2025
Created on Nov 17, 2025
Forked from Activity6_q3

This scatter plot visualizes the relationship between horsepower and fuel efficiency (MPG) for cars from the Auto MPG dataset, with each point colored by the vehicle's region of origin (USA, Europe, or Japan). Using D3 v7, the code loads CSV data via `d3.csv`, maps it with a custom parsing function, and renders points as SVG circles with `d3.scaleLinear` for both axes and `d3.scaleOrdinal` for region-based coloring. The visualization includes labeled axes, a legend, and a red title, all rendered as SVG elements.

AI-generated description