Skip to main content
100%

observer plot

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

MIT Licensed

Similar vizzes