🌍 Public
Viewing a saved revision (read-only)
6d8e0dccb8db481eb4cd3ec7f0612314
Car's Scatter Plot
This scatter plot shows the relationship between vehicle weight and fuel efficiency (MPG) for a dataset of cars, with each red circle representing an individual car model. The visualization uses D3.js v6’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to map data values to SVG coordinates and render labeled axes with gridlines. Data is loaded asynchronously via `csv` from a remote file, then parsed into numeric values before being drawn to the SVG canvas. The chart includes a title and axis labels, with circles having partial opacity to reveal overlapping points.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.