Skip to main content
100%

Activity 7 Tutorial

✓ Published0🌍 Public
KKhushi Desai
Last edited Nov 2, 2024
Created on Nov 2, 2024
Forked from Hello VizHub

This example visualizes the Iris dataset as an animated scatterplot, cycling through four flower measurements as x-axis values while keeping sepal length on the y-axis. Points are colored by species (Setosa, Versicolor, Virginica) with matching legend markers. The animation cycles through petal width, sepal width, petal length, and sepal length every few seconds. The code uses D3 v6 modules, including `csv`, `scaleLinear`, `axisLeft`, `axisBottom`, and `extent`, with a reusable scatter plot function and ES6 module imports. The SVG renders with custom labels, a color legend, and axis titles that update per iteration.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes