🌍 Public
Viewing a saved revision (read-only)
7bde9653b7ae44da9e90c21fb9ac52c6
Activity9-T1
This animated scatter plot visualizes the Iris dataset, cycling through four combinations of petal and sepal measurements on the x-axis while keeping sepal length on the y-axis. Points are colored by species (setosa, versicolor, virginica) with a legend, and a title updates to reflect the current axis. Built with D3 version 6.7, the visualization uses `scaleLinear`, `axisLeft`, and `axisBottom` to create the axes, with a `setInterval` timer rotating the x-axis variable every few seconds. The SVG rendering includes labeled axes, a color legend, and custom-styled text.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.