Reusable Scatter plot Activity 8
✓ Published0🌍 Public
This interactive scatter plot visualizes the Iris flower dataset, with points colored by species (setosa, versicolor, virginica). The code uses D3 v6 modules including `scaleLinear`, `axisLeft`, `axisBottom`, and `csv` loading from a GitHub gist. An animated interval cycles through four different attribute pairings on the x-axis while the y-axis remains fixed, with the scatter plot rendered as SVG circles. The example demonstrates a reusable scatter plot function defined as an ES6 module, alongside manual point rendering and custom legend elements.
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