Skip to main content
100%

Scatter Plot With Menus

✓ Published0🌍 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
MIT Licensed

Similar vizzes