Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
Ddjtorrey
Last edited Jun 26, 2021
Created on Jun 26, 2021

This interactive scatter plot visualizes the Iris Dataset, cycling through different attribute combinations on the x-axis every two seconds. The code uses the D3.js library with `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to map data points as animated circles within an SVG canvas. A reusable chart pattern, inspired by Mike Bostock’s “Towards Reusable Charts,” structures the visualization, while `setInterval` triggers periodic re-renders that update axes and circle positions. The data is loaded via `csv` from a remote Gist, with parsing and scaling handled by `d3.csv` and `d3.scaleLinear`.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes