Skip to main content
100%

Scatter Plot

✓ Published0🌍 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.

MIT Licensed

Similar vizzes