Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
RReyden Harris
Last edited Mar 11, 2023
Created on Mar 11, 2023

This example presents an interactive scatter plot of the Iris Dataset that cycles through different x-axis dimensions every two seconds. The chart is rendered as an SVG using D3.js, with a reusable `scatterPlot` module that handles axis generation, circle positioning, and dynamic updates. The code utilizes D3's `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` APIs, and relies on the `csv` function to load data from a remote Gist. The visualization demonstrates how D3 charts can be abstracted into configurable, reusable components, with animation swapping between petal and sepal measurements.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes