Cars ScatterPlot
✓ Published0🌍 Public
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 descriptionWorking with D3.js
- Making a scatterplot of quantitative attributes showing data about cars
- Data is from https://vizhub.com/curran/datasets/auto-mpg.csv
MIT Licensed