🌍 Public
Viewing a saved revision (read-only)
c1cf567912b944e9bfad30d0d7196ab1
Activity6_task-3
This scatter plot visualizes the Iris dataset, showing the relationship between petal length and petal width, with data points colored by species (setosa, versicolor, and virginica). The visualization also incorporates sepal length and width values into each point’s bounding box via the rx and ry attributes. Built with D3 v6, the code loads CSV data using d3.csv, scales axes with d3.scaleLinear, and renders circles and axis labels as SVG elements. The interactive full-window layout uses d3.axisBottom and d3.axisLeft for coordinate reference, with species-based coloring applied through a custom marker function.
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.