🌍 Public
Viewing a saved revision (read-only)
b6a1174854234052be76173456d20be8
question 3.1
This example displays the Iris dataset as a scatter plot of petal length against petal width, with each circle colored by species (skyblue for setosa, lightgreen for versicolor, orange for virginica). It also encodes sepal length and sepal width as the `rx` and `ry` attributes on each circle, creating distorted ellipses. The code loads CSV data via `d3.csv`, uses `scaleLinear` for axes, and renders SVG circles and axes with `select`, `join`, `axisLeft`, and `axisBottom`.
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.