activity_7
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed