Activity8_Task3
✓ Published1🌍 Public
This example visualizes the Iris dataset as a scatter plot, mapping petal length and width to the x and y axes while coloring each point by species (setosa, versicolor, virginica). It uses d3.csv to load the data, d3.scaleLinear for axes, and d3.select to build the SVG. The plot also encodes sepal length and width as the `rx` and `ry` attributes of each circle, though these do not affect the visual radius. Axis labels and legends are added via d3.axisBottom and d3.axisLeft.
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.
MIT Licensed