Skip to main content
100%

Reusable Cycle D3 Scatter Plot Black and White

✓ Published2🌍 Public
AAndre J Denais
Last edited Aug 27, 2021
Created on May 26, 2021

This example visualizes the classic Iris Dataset as an animated scatter plot, cycling through four measured attributes on the x-axis every two seconds while sepal length remains constant on the y-axis. Built with D3 version 6, the reusable `scatterPlot` module manages scales, axes, and circles, using `d3.scaleLinear`, `d3.extent`, `d3.axisLeft`, and `d3.axisBottom`. The SVG renders black-and-white circles, with axes updated dynamically via the `svg.call(plot)` pattern, demonstrating a configurable chart that handles data changes through setter methods.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.

MIT Licensed

Similar vizzes