Skip to main content
100%

Cars scattaplot!

✓ Published0🌍 Public
AAndrew Fletcher
Last edited Jan 12, 2020
Created on Jan 12, 2020
Forked from axes and stuff

This scatterplot displays automobile data from the auto-mpg dataset, plotting cylinders on the x-axis against horsepower on the y-axis. Each data point is rendered as a blue SVG circle using D3 v5’s selection and data-join methods. The visualization employs d3.scaleLinear and d3.extent to compute domains, with d3.axisBottom and d3.axisLeft generating gridlines. Axis labels and a title are manually added as SVG text elements, with custom tick formatting via d3.format.

AI-generated description
MIT Licensed

Similar vizzes