Skip to main content
Public

Share visualization

Loading preview…

Scatter Plot with menus.js

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.js

0
Ssunsun11166
Last edited Dec 13, 2020
Created on Dec 13, 2020

This interactive scatter plot from the auto-mpg dataset lets users explore relationships between numeric car attributes by switching the axes through dropdown menus. Built with D3 v5, it uses `d3.scaleLinear` and `d3.extent` for scales, with `d3.axisBottom` and `d3.axisLeft` for grid lines. A custom dropdownMenu module triggers re-rendering on selection, while transitions animate circles to their new positions using `transition.attr`. The SVG visualization includes styled labels and tick marks.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed