Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Reusable D3 Scatterplot

Public visualization

Viewing a saved revision (read-only)

bd092af156ed440787b1a2866b70adf2

Reusable D3 Scatterplot

0 stars1🌍 Public
Vvschan2
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from D3 Scatterplot

This example demonstrates a reusable D3 scatterplot that visualizes the Iris flower dataset, dynamically cycling through different combinations of petal and sepal measurements every two seconds. The plot encodes three variables simultaneously: x and y positions for two measurements, point size for a third, and color for species. It uses D3 scales including `scaleLinear`, `scaleSqrt`, and `scaleOrdinal`, along with SVG symbols and axes. The chart is built as a reusable function with chainable setters, allowing data, margins, and visual encodings to be updated externally.

AI-generated description

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

See also React Starter.