Skip to main content
100%

Fork of D3 Scatter Plot

✓ Published1🌍 Public
PPeiyang Li
Last edited Apr 15, 2023
Created on Apr 14, 2023
Forked from D3 Scatter Plot

This example visualizes the Iris flower dataset as a scatter plot, mapping petal length on the x-axis against sepal length on the y-axis. Circles are rendered in SVG, with each point labeled by its exact coordinate values via a title tooltip. Built with D3 v7 and React, the visualization uses `d3.csv` to load data, `scaleLinear` for coordinate mapping, and `extent` to compute domains. Axes are generated through `axisLeft` and `axisBottom` functions, while the page adapts to the full browser viewport by using `window.innerWidth` and `window.innerHeight`.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes