Skip to main content
100%

Cars Scatter Plot

✓ Published0🌍 Public
Eegrebing
Last edited Sep 21, 2020
Created on Sep 21, 2020

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 description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes