Skip to main content
100%

Scatter Plot with Menus

✓ Published1🌍 Public
Iianleekq
Last edited Apr 4, 2019
Created on Apr 3, 2019
Forked from Cars Scatter Plot

This example shows an interactive scatter plot of the auto-mpg dataset, where dropdown menus let the user select which columns to display on the x- and y-axes. As the selection changes, the plot’s axes and data points animate to their new positions with a smooth transition. The visualization is built using the D3.js library (v5), leveraging its `scaleLinear`, `axisLeft`, `axisBottom`, and `extent` APIs, with circles rendered as SVG elements. The dropdown menus are created dynamically via a custom component that generates HTML `<select>` elements, and the plot updates instantly upon user input.

AI-generated description
MIT Licensed

Similar vizzes