Reusable Scatter plot Activity 8
✓ Published0🌍 Public
This interactive scatter plot visualizes the Iris dataset, using D3 to display sepal and petal measurements colored by species. The view cycles through four attribute pairs on the x-axis every few seconds, updating axes via d3.axisBottom and d3.axisLeft while circles are redrawn using d3.scaleLinear and extent. A custom legend and labels are added as SVG text elements, with data loaded asynchronously via d3.csv from a remote gist.
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