Skip to main content
100%

Interactions

✓ Published0🌍 Public
Kknstrom
Last edited Feb 17, 2022
Created on Feb 17, 2022
Forked from Cars Scatter Plot

This example shows an interactive scatter plot of automobile data from the auto-mpg.csv dataset. Two dropdown menus let viewers select which columns from the dataset to plot on the x- and y-axes, with the plot updating accordingly. D3 v5 is used to render the SVG visualization, with the `scaleLinear`, `axisLeft`, `axisBottom`, and `extent` APIs handling scaling and axes. Each point animates to its new position over 2 seconds when the selection changes, using a transition with a 10-millisecond per-point delay. The scatterPlot module is reused with different column mappings triggered by the dropdown menu callbacks.

AI-generated description
MIT Licensed

Similar vizzes