🌍 Public
Viewing a saved revision (read-only)
58ab403b51db40c69c01c2f5d6583bdb
Reusable 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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.