Skip to main content
100%

D3 Scatter plot

✓ Published1🌍 Public
GGbemiga Atolagbe
Last edited Jan 8, 2025
Created on Nov 13, 2024
Forked from HTML Starter

This example visualizes the Iris dataset as a scatter plot, mapping petal length to the x-axis and sepal length to the y-axis. Each flower is rendered as a small circle using SVG. The code fetches the CSV data via D3’s `csv` function, parses numeric fields, and creates linear scales with `scaleLinear` and `extent` to set the domains. Axes are drawn with `axisLeft` and `axisBottom`, and all rendering is handled through D3 selections within a React-free HTML page.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes