Skip to main content
100%

Reusable D3 Scatter Plot- ICE7

✓ Published0🌍 Public
Hharika-1929
Last edited Jun 30, 2022
Created on Jun 30, 2022

This example shows an animated scatter plot of the Iris dataset, cycling through four different measurements (petal width, sepal width, petal length, and sepal length) on the x-axis while keeping sepal length on the y-axis. Data points are colored by species (setosa, versicolor, virginica) and change position via a `setInterval` that updates the chart’s x-scale. The visualization uses D3 v6 with SVG rendering, including axes, a static legend, and custom title labels. It demonstrates a reusable `scatterPlot` module built with D3’s `scaleLinear`, `extent`, and axis functions, with data loaded from a CSV file.

AI-generated description
MIT Licensed

Similar vizzes