Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published9🌍 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
MIT Licensed

Similar vizzes