🌍 Public
Viewing a saved revision (read-only)
44251fb053fe4f61a56e8aea3075aa05
question3_act6
This scatter plot visualizes the Iris dataset, mapping petal length on the x-axis and petal width on the y-axis, with circle colors representing the three species (setosa, versicolor, and virginica). The visualization uses D3 v6 to load CSV data from a remote URL, scale the values to the screen dimensions, and render SVG circles with fixed radius. The code also stores but does not visually use sepal measurements as additional data attributes on each circle. Axes are drawn using D3’s `axisLeft` and `axisBottom`, with custom axis labels for petal length and sepal length.
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.