🌍 Public
Viewing a saved revision (read-only)
5e88111c7e3d441697c17e7c0dafbdf8
Episode 10 - Reusable Charts w/ Idempotence (GIRIBAW)
This visualization demonstrates reusable scatter plots using the D3.js library, rendering an SVG of the Iris dataset. The chart cycles through four attributes—petal width, sepal width, petal length, and sepal length—as the x-axis variable every two seconds, with sepal length fixed on the y-axis. The code uses D3’s `scaleLinear`, `axisLeft`, `axisBottom`, and the `join` pattern for idempotent updates. Data loads from a GitHub Gist via `d3.csv`, and the plot’s configuration (width, height, margins, radius, accessor functions) is set through a chained getter-setter API.
AI-generated description