Skip to main content
100%

Episode 10 - Reusable Charts w/ Idempotence (GIRIBAW)

✓ Published1🌍 Public
Eemberix@gmail.com
Last edited Jun 7, 2021
Created on Jun 4, 2021

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
MIT Licensed

Similar vizzes