Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activitity6_Question3

Public visualization

Viewing a saved revision (read-only)

ec03e4f34b0e4899a0a3c970a83ede1c

Activitity6_Question3

0 stars0🌍 Public
GGunna,Praneeth Reddy
Last edited Oct 31, 2025
Created on Oct 30, 2025
Forked from Activitity6_Task3

This scatter plot visualizes the relationship between horsepower and miles per gallon (MPG) for a cars dataset, with each circle colored by the vehicle’s origin (USA, Europe, or Japan). The visualization uses D3 v6 to load CSV data via `d3.csv`, parse and filter the rows, and render SVG circles with linear scales for both axes. Axis labels and ticks are added using `axisLeft` and `axisBottom`, while the full window width and height define the chart area. The code explicitly filters out rows with missing or invalid numeric values before mapping the data points.

AI-generated description