Skip to main content
100%

Scatter Plot w/ menus

✓ Published1🌍 Public
ZZhengyan Yu
Last edited Apr 29, 2020
Created on Apr 27, 2020
Forked from Cars Scatter Plot

This example shows a scatter plot of car horsepower versus weight, with a dropdown menu that lets users select among options A, B, and C, though the menu does not yet filter the data. The visualization uses D3 v5’s `scaleLinear`, `axisBottom`, and `axisLeft` to render axes and gridlines, with SVG circles for data points colored red and semi-transparent. Data comes from a CSV of auto-mpg records loaded via `d3.csv`, and the menu is built with a custom `dropdownMenu` module that appends a select element.

AI-generated description
MIT Licensed

Similar vizzes