Skip to main content
100%

Reusable Scatter plot Activity 8

✓ Published0🌍 Public
Jjayanthkumar22
Last edited Jul 21, 2023
Created on Jul 20, 2023
Forked from Hello VizHub

This animated scatter plot visualizes the Iris dataset, switching between four different flower measurements on the x-axis while sepal length remains constant on the y-axis. Points are colored by species (setosa, versicolor, virginica) and use custom ellipse-like shapes via circle elements with rx and ry attributes. The visualization updates every few seconds using setInterval, re-rendering axes through the d3.scaleLinear, axisLeft, and axisBottom APIs. A custom scatterPlot function manages the reusable chart structure, with data loaded via d3.csv from a GitHub gist and rendered as SVG.

AI-generated description

A demonstration of reusable scatter plot.

MIT Licensed

Similar vizzes