Skip to main content
100%

Cars Scatter Plot

✓ Published0🌍 Public
HHernanls
Last edited Feb 24, 2020
Created on Feb 24, 2020
Forked from Cars Scatter Plot

This scatter plot visualizes the relationship between horsepower and weight for cars from the UCI Auto MPG dataset, rendering each vehicle as a semi-transparent red circle. The code uses d3.scaleLinear for both axes, d3.axisLeft and d3.axisBottom to draw gridlines and tick labels, and appends SVG circles positioned via the scaled values. It loads data through a fetch-based authentication call to an external API before parsing numeric fields and rendering the chart with margin-based layout and custom axis labels.

AI-generated description

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

MIT Licensed

Similar vizzes