Skip to main content
100%

Cars ScatterPlot

✓ Published0🌍 Public
TTebid Quinsy
Last edited Dec 24, 2020
Created on Dec 24, 2020
Forked from ScatterPlot

This scatterplot visualizes the relationship between vehicle weight and miles per gallon (mpg) for a dataset of cars from the auto-mpg CSV file. Using D3.js v5, the chart employs `scaleLinear` functions to map quantitative attributes to SVG coordinates, with `axisBottom` and `axisLeft` to render labeled axes on a blue background. Each car is represented as a semi-transparent red circle, positioned via the `cx` and `cy` attributes. The code loads data with `csv`, converts numeric fields, and applies margins and ticks to structure the plot.

AI-generated description

Working with D3.js

MIT Licensed

Similar vizzes