Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot With Menus

Public visualization

Scatter Plot With Menus

0 stars0🌍 Public
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