Skip to main content
100%

Reusable Scatter plot Activity 8

✓ Published0🌍 Public
Mmn0658
Last edited Jul 19, 2023
Created on Jul 19, 2023

This animated scatter plot visualizes the Iris dataset, cycling through four feature combinations on the x-axis while sepal length stays on the y-axis. Each species appears as a distinct color (skyblue, lightgreen, orange) with a legend. Built with D3 v6, it uses `scaleLinear`, `axisLeft`, `axisBottom`, and a reusable `scatterPlot` module updated via `setInterval`. SVG circles and text labels render dynamically as axes change every few seconds.

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