Reusable D3 Scatterplot
✓ Published1🌍 Public
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 descriptionPart of the "Get it Right in Black and White" course, an edited collection of live streams taught by Dr. Curran Kelleher.
MIT Licensed