Skip to main content
100%

d3 scatter plot

✓ Published0🌍 Public
GGorka Ribera
Last edited May 17, 2024
Created on May 17, 2024

This example renders an interactive scatter plot of the Iris dataset, mapping petal length to the x-axis and sepal length to the y-axis. Circles represent individual flowers, positioned using `d3.scaleLinear` for both axes, with margins and a fixed radius of 5 pixels. The visualization uses `d3.axisLeft` and `d3.axisBottom` to draw the y- and x-axes, and `d3.select` to append an SVG canvas that fills the browser window. Data is loaded asynchronously via `d3.csv` from a remote Gist URL.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes