Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot with Menus

Public visualization

Viewing a saved revision (read-only)

b3eed087abf14479b9e0b563c338ea25

Scatter Plot with Menus

0 stars0🌍 Public
VVamsiYandapalli
Last edited Dec 10, 2021
Created on Dec 10, 2021

This interactive scatter plot lets users explore the relationship between any two numeric variables in the auto-mpg dataset through dropdown menus. The visualization uses D3 v5 with SVG rendering, employing `d3.scaleLinear`, `d3.extent`, and `d3.axisLeft`/`d3.axisBottom` for scales and axes. Selecting a new column from either menu triggers a re-render that animates circles to their new positions using `transition().duration(2000).delay()`. Each circle represents a car, with red fill and partial opacity, plotted according to the chosen x and y axes. The data is loaded from a CSV file via `d3.csv`.

AI-generated description