🌍 Public
Activity9&10
This animated scatterplot displays the Iris dataset, cycling through four different feature pairs to reveal relationships between sepal and petal measurements. The visualization loads data via d3.csv and uses a custom scatterPlot() function built with d3.scaleLinear, axisBottom, and axisLeft to render axes. Circles are colored by species using a switch statement, with a legend and labels added manually. The setInterval function cycles through columns to update the x-axis mapping, while SVG text and circle elements dynamically update to reflect the current dimensions.
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
Comments
Sign in to join the discussion.