🌍 Public
Viewing a saved revision (read-only)
dac839e8daa041ae981b9da1b27a13e8
Activity6_Task3
This visualization displays the Iris dataset as a scatter plot, using petal length on the x-axis and petal width on the y-axis, with each point colored by species (skyblue for setosa, lightgreen for versicolor, orange for virginica). The code loads CSV data via `d3.csv`, maps values using `scaleLinear`, and renders the plot as an SVG with circles and axes. It also incorporates sepal length and width as custom `rx` and `ry` attributes on the circles. The chart uses D3 v6 with `axisLeft`, `axisBottom`, and `selectAll().data().join()` for data binding, sized to the full window.
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.