Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot

Public visualization

Viewing a saved revision (read-only)

9b9ab2f919a34feeaff5960b690ef58a

Scatter Plot

0 stars0🌍 Public
JJulia Huang
Last edited Apr 11, 2023
Created on Apr 11, 2023

This scatter plot displays the relationship between petal length and petal width, with points colored by iris species. Built with Observable Plot and D3 v7, the example loads CSV data via `d3.csv` and `autoType`, then renders a full-window plot using Plot’s `plot` and `dot` marks. The chart updates to fill the browser viewport by setting width and height to `window.innerWidth` and `window.innerHeight`.

AI-generated description

Minimal example demonstrating use of Observable Plot with vanilla HTML.