Cars Scatter Plot with Menus
✓ Published0🌍 Public
TTsen Hsieh
Last edited Nov 12, 2022
Created on Sep 28, 2022
This scatter plot shows the relationship between miles per gallon and horsepower for cars from the auto-mpg dataset. Each point is a semi-transparent blue circle, with axes labeled and scaled using linear scales with nice tick intervals. The visualization is built with D3 v7, using `scaleLinear` for coordinate mapping, `axisLeft` and `axisBottom` for grid lines and labels, and SVG rendering. The CSV data is loaded via D3's `csv` function and parsed into numeric values before plotting.
AI-generated descriptionMIT Licensed