Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

observer plot

Public visualization

Viewing a saved revision (read-only)

081a122bdc84466e9bff5424e6c55813

observer plot

0 stars1🌍 Public
SSamanvitha1
Last edited Jun 26, 2022
Created on Jun 25, 2022

This example uses Observable Plot to create a scatterplot of iris flower measurements, mapping petal length on the x-axis and petal width on the y-axis, with points colored by species. The dataset is loaded as CSV via `d3.csv` and `autoType`, then rendered using the `plot` and `dot` functions from the Plot library. The visualization fills the entire browser window by setting the width and height to `window.innerWidth` and `window.innerHeight`. The chart is appended directly to the document body, demonstrating a minimal integration of Plot with vanilla HTML and D3 v7.

AI-generated description

Minimal example demonstrating use of Observable Plot with vanilla HTML.