🌍 Public
Viewing a saved revision (read-only)
803a9e54df624aae80dfcabcf7937730
Scatter Plot - Different Dataset
This example displays a scatter plot of the Iris dataset, plotting sepal length against sepal width and highlighting individual points in red on hover. The visualization uses D3 v7 APIs including `csv` for data loading, `scaleLinear` and `extent` for scaling, and `axisLeft`/`axisBottom` for axes. Circles are rendered as SVG elements via `selectAll().data().join()`, with a fixed radius and black fill. The chart fills the entire browser window, and axes are positioned using margins derived from `innerWidth` and `innerHeight`.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.