Skip to main content
100%

Scatter Plots with Menus

✓ Published1🌍 Public
MMajaha21
Last edited May 11, 2021
Created on May 11, 2021
Forked from Cars Scatter Plot

This interactive scatter plot displays automobile data from the auto-mpg dataset, plotting horsepower against a user-selected x-axis column via a dropdown menu. Built with D3 v6 and SVG, it uses scaleLinear, axisBottom, axisLeft, and d3.csv to render points. The dropDownMenu module triggers re-renders dynamically when the selection changes, updating the x-scale and axis accordingly. The visualization includes grid lines, axis labels, and a title, with styling applied through an external CSS file.

AI-generated description
MIT Licensed

Similar vizzes