Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE - 7 Reusable Scatter Plot

Public visualization

Viewing a saved revision (read-only)

fa20109b7fad43a7b23328a434f1ede1

ICE - 7 Reusable Scatter Plot

0 stars0🌍 Public
RRohithReddy-thoughts
Last edited Mar 29, 2022
Created on Mar 28, 2022

This visualization cycles through the Iris dataset, automatically animating between scatter plots that map each of the four flower measurements to the x-axis while keeping sepal length on the y-axis. The code uses a reusable D3 scatterPlot function with scaleLinear, axisLeft, and axisBottom to render axes, while each data point is drawn as a circle colored by species. A setInterval updates the x-value mapping every 1.9 seconds, with the axis labels updating accordingly. The visualization uses D3’s csv loader and SVG rendering to display the data.

AI-generated description