Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

activity_7

Public visualization

Viewing a saved revision (read-only)

3df80c78513543c4beb74a9d250c2cdc

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.