Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 Scatterplot Example

Public visualization

Viewing a saved revision (read-only)

58d0a9490ea640e4bfcb411526ad1729

D3 Scatterplot Example

0 stars0🌍 Public
JJonathan Awad
Last edited Mar 26, 2023
Created on Mar 26, 2023
Forked from Cars Scatter Plot

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 description

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