Activity 6_Task 3
✓ Published0🌍 Public
This scatter plot visualizes the Iris dataset, showing the relationship between petal length and width for three species of iris flowers. The visualization uses D3.js v6 to load data from a GitHub-hosted CSV file and render circles as SVG elements. Circles are color-coded by species (setosa in sky blue, versicolor in light green, and virginica in orange), with axis labels displaying the measured attributes. The chart employs D3’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` functions to map data values to screen coordinates and generate axes.
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