Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Long Trip Data (LGA-Airport as the destination)

Public visualization

Viewing a saved revision (read-only)

2ee6353788a94d52803c6351a13fd37e

Long Trip Data (LGA-Airport as the destination)

1 star1🌍 Public
JJIAHAO LAI
Last edited Dec 15, 2022
Created on Dec 15, 2022

A scatter plot visualizes long trip data from LGA Airport, plotting trip distance on the x-axis against pickup hour on the y-axis, with points colored by weekday. Built with React and D3 v5, it uses `scaleLinear` for both axes, `scaleOrdinal` for color encoding, and SVG circles for marks. Hovering a legend item filters and highlights matching points while fading others, implemented through `useState` and conditional opacity.

AI-generated description

A scatter plot of The Iris Dataset.