Skip to main content
100%

Scatter Plot

✓ Published0🌍 Public
JJames Huang
Last edited Sep 19, 2023
Created on Sep 19, 2023
Forked from HTML Starter

A scatter plot displays individual data points positioned by two numeric variables, with each point rendered as a small circle. The visualization uses D3.js v6 and is built with a simple SVG container. The code applies the `d3.scaleLinear` function to map x- and y-values to pixel coordinates, then appends `circle` elements to the chart area. Axes are generated with `d3.axisBottom` and `d3.axisLeft`. The data is loaded from an external CSV file using `d3.csv`, and the plot updates dynamically once the data is parsed.

AI-generated description

Homework 1 - Scatter Plot

MIT Licensed

Similar vizzes