🌍 Public
Viewing a saved revision (read-only)
9c6b0618a6b14de498b29e1109c45bed
Activity 8_Task 3.1 Tutorial
This scatter plot visualizes the Iris dataset, showing the relationship between petal length and petal width, with each point colored by species (skyblue for setosa, lightgreen for versicolor, orange for virginica). The visualization uses the d3.csv loader to fetch remote data, and d3.scaleLinear, d3.extent, d3.axisLeft, and d3.axisBottom to create the plot. Data points are rendered as SVG circles using a `.join('circle')` operation, with positions mapped from the petal dimensions and colors assigned via a switch statement on 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.