Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars ScatterPlot

Public visualization

Cars ScatterPlot

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed