🌍 Public
Viewing a saved revision (read-only)
c3d41005df224f86a983a691c156b2f7
Activity 6_Task 3
This scatter plot visualizes the Iris dataset, showing petal length against petal width, with points colored by species: setosa, versicolor, and virginica. The visualization uses D3 v6 to load CSV data and render circles on an SVG canvas, with axis labels for petal length and sepal length. Axes are generated using `d3.axisLeft` and `d3.axisBottom`, while the data is scaled with `d3.scaleLinear` and `d3.extent`. The plot is built entirely with D3 selections, appending circles and text elements directly to the SVG.
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.