Skip to main content
100%

Cars Scatter Plot with menus

✓ Published0🌍 Public
Jjay
Last edited Feb 21, 2020
Created on Feb 20, 2020

This visualization displays the relationship between horsepower and weight for a dataset of cars, with each car represented as a circle. A dropdown menu above the chart lists all data columns, but the code only logs the selected option to the console; it does not change the chart axes. The scatter plot is rendered using D3 v5 with SVG, using the `scaleLinear`, `axisBottom`, and `axisLeft` APIs to construct axes and `csv` to load the auto-mpg dataset from a remote URL. A reusable `dropDownMenu` module handles the menu creation with D3 data joins.

AI-generated description
MIT Licensed

Similar vizzes