🌍 Public
Viewing a saved revision (read-only)
6863c475cc6445b7a2f2886d91954d59
Reusable Scatter Plot
This example plots the classic Iris dataset with petal length on the x-axis and sepal length on the y-axis. The d3.v7 code loads the CSV, parses numeric fields, and uses `scaleLinear` with `extent` to map data to screen coordinates. Circles are bound to the data, with axes generated via `axisLeft` and `axisBottom` within a margin-defined layout. The chart fills the browser window, rendering all points as simple SVG circles with a fixed radius.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.