Skip to main content
100%

d3 Starter cars scatter plot

✓ Published0🌍 Public
NNandeep
Last edited Apr 23, 2020
Created on Apr 23, 2020

This scatter plot visualizes cars from the UCI Machine Learning Repository’s Auto MPG dataset, mapping horsepower on the x-axis against weight on the y-axis. Each red, semi-transparent circle represents a vehicle, with axes labeled explicitly and a title noting “Cars : Horsepower vs. Weight.” The code uses d3.csv to load data, d3.scaleLinear with .nice() for scaling, and d3.axisLeft and d3.axisBottom for tick marks, with custom tick sizing and padding. Axis labels and title are appended as SVG text elements, while circles are added via data joins.

AI-generated description

data visualisation with D3.js : stopped at 04:34:37

From freeCodeCamp tutorial, on youtube FCC channel, by Curran Kelleher.

This scatter plot shows data about cars, from UCI Machine Learning Repository : Data MPG Data Set.

MIT Licensed

Similar vizzes