🌍 Public
Viewing a saved revision (read-only)
b17d64e834944853bd64a3ec91c83a00
activity6_task3.1
This scatter plot visualizes the Iris dataset, showing the relationship between petal length and petal width, with each point colored by species. The code uses d3.csv to load the data, d3.scaleLinear to map the coordinates, and d3.axisLeft and d3.axisBottom for the chart axes. Circles are drawn in SVG, with colors assigned to setosa, versicolor, and virginica. Extra attributes for sepal dimensions are also bound to each circle, though only petal dimensions determine their position.
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.