Cars Scatter Plot
✓ Published0🌍 Public
This scatter plot visualizes the relationship between vehicle weight and fuel efficiency (MPG) for a dataset of cars, with points colored by country of origin (USA, Japan, Germany). The D3 v6 code uses `scaleLinear` for both axes, `scaleOrdinal` for color mapping, and `axisLeft`/`axisBottom` with gridlines to render the plot into an SVG canvas. Data is loaded asynchronously from a CSV file using the `csv` function, and point styling includes a dark gray stroke and semi-transparency.
AI-generated descriptionAn example including some commonly used features of SVG.
MIT Licensed