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

0
Jjlspangl
Last edited Oct 7, 2021
Created on Oct 7, 2021
Forked from Cars Scatter Plot

This scatter plot displays the relationship between horsepower and weight for cars from the auto-mpg dataset, with each point representing a vehicle. The visualization uses d3.scaleLinear to map data values to screen coordinates, d3.axisBottom and d3.axisLeft to render the axes, and SVG circles for the data points. A dropdown menu is created using a helper function that appends a select element, though the menu does not yet affect the chart. The code loads CSV data asynchronously and converts string values to numbers before rendering.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed