Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Reusable D3 Scatter Plot

Public visualization

Viewing a saved revision (read-only)

2a44f237983c40ae8b0451bf2b3d03f9

Fork of Reusable D3 Scatter Plot

0 stars9🌍 Public
RRavi Teja Bonam
Last edited Mar 29, 2022
Created on Mar 23, 2022

This example shows an interactive scatter plot of the Iris dataset, where the x-axis cycles through four numeric columns (petal width, sepal width, petal length, sepal length) every 1.5 seconds, while the y-axis stays fixed to sepal length. Each point is colored by species using a d3.scaleOrdinal with a viridis-like palette, and a static legend identifies the three species. Built with D3 v6, the visualization uses d3.csv to load data, d3.scaleLinear and axisLeft/axisBottom for axes, and a reusable scatterPlot function that updates circle positions and axis labels on each interval.

AI-generated description