Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity_7

Public visualization

Viewing a saved revision (read-only)

91990932e6c442c290386f7ea0d33435

activity_7

0 stars0🌍 Public
SShiva Sai Reddy
Last edited Nov 6, 2024
Created on Nov 6, 2024
Forked from Hello VizHub

This example demonstrates an animated scatter plot of the Iris dataset, cycling through different sepal and petal measurements on the x-axis while keeping petal width on the y-axis. D3 version 6.7.0 is used via UNPKG, with the `csv` method loading data and `scaleLinear`, `axisLeft`, `axisBottom`, and `extent` powering the axes. Circles are colored by species through custom logic, and a `setInterval` timer updates the plot’s x-value accessor every few seconds, re-rendering the SVG to cycle between four measurement columns.

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.