Reusable Scatter plot Activity 8
✓ Published0🌍 Public
This interactive scatter plot explores the classic Iris dataset, showing how flower measurements relate across different species. A set of colored circles represents individual flowers, with colors distinguishing setosa, versicolor, and virginica. Using D3.js, the visualization cycles through different measurement combinations on the x-axis while keeping sepal length on the y-axis, updating every few seconds. The code leverages D3's CSV parsing, scale functions, and axis components to render the dynamic chart, which includes a legend and labels for each species.
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