Skip to main content
Public

Share visualization

Loading preview…

Scatter Plot with Menus

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Scatter Plot with Menus

1
Jjons288
Last edited Oct 9, 2018
Created on Oct 9, 2018

This scatter plot displays automobile data from the UCI Machine Learning Repository’s Auto MPG dataset, with users selecting X and Y axes via dropdown menus. Built with D3 v5, it uses `scaleLinear`, `extent`, `axisLeft`, `axisBottom`, and `transition().duration()` for animated circle rendering. The `dropdownMenu` function binds `<select>` elements to column options, while `scatterPlot` handles SVG axes, labels, and data point transitions.

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.

Comments

Sign in to join the discussion.

MIT Licensed