Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Activity 6

Public visualization

Viewing a saved revision (read-only)

c2ce5e1f0f494fa3ab06bc8aa18d3d62

Activity 6

0 stars0๐ŸŒ Public
Bbhargavipagolu2025@gmail.com
Last edited Oct 30, 2025
Created on Oct 30, 2025

This scatter plot visualizes the relationship between horsepower and miles per gallon (MPG) for cars, with points colored and shaped by origin (USA, Europe, Japan). The visualization uses d3.csv to load data from a GitHub-hosted CSV file and renders the chart as an SVG with d3.v7. Interactive tooltips appear on mouseenter to display car details, while a legend indicates the mapping between shape, color, and origin. The implementation uses d3.scaleOrdinal, d3.symbol, and d3.axisBottom/axisLeft to create the marks and scales.

AI-generated description