D3 Scatterplot Example
✓ Published0🌍 Public
This D3 scatterplot visualizes car data from the UCI Machine Learning Repository's Auto MPG dataset. The SVG-based chart plots individual car models using circles, with positions determined by a linear scale applied to each data point's x and y values. The visualization is built using D3 v6, employing `d3.scaleLinear` for axis scaling, `d3.extent` for domain calculation, and `d3.axisBottom` and `d3.axisLeft` for generating the x and y axes. The code constructs the plot by dynamically loading `data.json` and appending circles to the SVG canvas, with axes positioned via margin offsets.
AI-generated descriptionThis scatter plot shows data about cars, from UCI Machine Learning Repository: Auto MPG Data Set.
MIT Licensed