Skip to main content
100%

D3 Scatterplot

✓ Published1🌍 Public
Vvschan2
Last edited Apr 14, 2024
Created on Apr 13, 2024
Forked from HTML Starter

This example visualizes the Iris dataset as an interactive scatterplot, mapping petal length to the x-axis, sepal length to the y-axis, and petal width to circle radius, with species indicated by color (blue, red, or black). It uses D3 v7’s `csv`, `scaleLinear`, `scaleSqrt`, `extent`, and `max` to load and scale the data, then renders SVG circles via a data join. Axis are drawn with `axisLeft` and `axisBottom`. The plot fills the browser window, and hovering reveals species and measurement details via tooltips.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes