Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie chart

Public visualization

Viewing a saved revision (read-only)

25db563dd913486e9b4c407b32beeee5

Pie chart

0 stars0🌍 Public
DDouglas mochama
Last edited Apr 29, 2024
Created on Apr 29, 2024
Forked from Activity 9

An animated scatter plot of the Iris dataset cycles through four feature pairs every few seconds, coloring each species—setosa, versicolor, and virginica—with distinct hues. The visualization loads D3 v6 from UNPKG and builds the chart via a reusable `scatterPlot` module using `scaleLinear`, `axisLeft`, and `axisBottom`. SVG circles update their x-axis attribute in a `setInterval` loop, while text labels and a legend are re-rendered dynamically. The example demonstrates local ES6 module imports and data parsing from a CSV URL.

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.