🌍 Public
Viewing a saved revision (read-only)
5fafc96d1df94fc1b40f9bdf5fb605b0
Activity6_Task3
This scatter plot visualizes the Iris dataset, mapping petal length and width for individual flowers while coloring each point by species (setosa, versicolor, virginica). The chart uses D3 v6 primitives including `csv`, `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to load data, compute scales, and render SVG axes and circles. The code draws circles whose horizontal and vertical positions encode petal dimensions, with size fixed at a radius of 5 pixels and fill colors assigned via a species-based switch statement.
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.