Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

animation cirlce of Reusable for scatter plot animation

Public visualization

Viewing a saved revision (read-only)

12e97be70108484b946d63d0932a1bcd

animation cirlce of Reusable for scatter plot animation

0 stars1🌍 Public
FFrancisco Ibelles
Last edited Jun 20, 2023
Created on Jun 20, 2023

This example demonstrates a reusable scatter plot that cycles through the Iris dataset, rotating between the four measurement columns for the x- and y-axes while also shifting the point color through a sequence. The animation, built with D3.js v7, uses the `transition` API to smoothly interpolate the positions and colors of the SVG circles over 3-second intervals. The `scatterPlot` custom component separates chart configuration from rendering, and the code loads data from a CSV file hosted in a GitHub Gist, with axes and circles re-rendered on each update.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.