🌍 Public
Viewing a saved revision (read-only)
862b068b8604471d86559faebc4e240d
Activity6_Task3
This example uses a scatter plot to visualize the Iris dataset, displaying petal length and petal width on the axes while coloring each point by species (setosa, versicolor, virginica). The D3 v6 code loads CSV data via the `csv` function, maps sepal and petal measurements using `scaleLinear` and `extent`, and renders the plot with SVG circles. It creates axes using `axisLeft` and `axisBottom` and adds data-driven colors, providing a clear comparison of species clusters in the flower measurements.
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.