Cars Scatter Plot
✓ Published0🌍 Public
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 descriptionThis scatter plot shows data about cars, from UCI Machine Learning Repository: Auto MPG Data Set.
MIT Licensed