🌍 Public
Viewing a saved revision (read-only)
716d47ab55f64d95935de2801fb1d74f
Activity 6_Tutorial Task 3.1_Harini
This scatter plot visualizes the Iris dataset, displaying petal length on the x-axis and petal width on the y-axis, with each point colored by species (setosa, versicolor, or virginica). The code loads the data from a remote CSV using `d3.csv`, scales the axes with `d3.scaleLinear` and `d3.extent`, and renders the plot as an SVG using `d3.select`, `d3.axisBottom`, and `d3.axisLeft` from the d3 v6 API. The visualization includes axis labels for petal length and sepal length, though the sepal length label appears mismatched relative to the plotted 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.