🌍 Public
Viewing a saved revision (read-only)
2ae4c899024f4c2ca9398f0a47441a4b
Activity 6_Task 3
This scatterplot displays the Iris dataset’s petal length against petal width for all samples, with each point’s fill color indicating its species (setosa, versicolor, or virginica). The visualization also captures sepal dimensions as supplemental attributes on the circles, though they do not affect the positions. Using D3 v6, the code loads CSV data via `d3.csv`, applies `d3.scaleLinear` for both axes, renders SVG circles through a data join, and adds axes with `d3.axisLeft` and `d3.axisBottom`. Axis labels are drawn as rotated text, and the chart resizes to the window dimensions.
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.