Skip to main content
100%

Scatter Plot with Menus

✓ Published0🌍 Public
Llizziechoi121
Last edited May 21, 2019
Created on May 21, 2019

This interactive scatter plot visualizes the Auto MPG dataset from the UCI Machine Learning Repository, allowing users to explore relationships between car attributes through dropdown menus. The menus let viewers dynamically select which columns map to the x- and y-axes, updating the visualization with an animated transition. Built with D3 v5, the code uses `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to render the axes, while `transition().duration()` and `delay()` animate the circles to their new positions. The SVG rendering includes axis labels and grid lines, with data parsed as numeric values for accurate scaling.

AI-generated description

This scatter plot shows data about cars, from UCI Machine Learning Repository: Auto MPG Data Set. The user can select which columns map to X and Y using dropdown menus.

MIT Licensed

Similar vizzes