Skip to main content
100%

Reusable D3 Scatterplot

✓ Published1🌍 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

Part of the "Get it Right in Black and White" course, an edited collection of live streams taught by Dr. Curran Kelleher.

MIT Licensed

Similar vizzes