Viewing a saved revision (read-only)
b51f4ce0fa5c48eabb4fad911cbf208b
Assignment-6_Activity-3
This example shows a scatter plot of the Iris dataset, mapping petal length on the x-axis and petal width on the y-axis. Points are colored by species (skyblue for setosa, lightgreen for versicolor, orange for virginica), with a fixed radius of 5 pixels. The visualization uses D3 v6 APIs including `d3.csv`, `d3.scaleLinear`, `d3.extent`, `d3.axisLeft`, and `d3.axisBottom`. Data is loaded from a remote CSV URL containing sepal and petal measurements, and rendered as SVG circles. Axis labels are added using SVG text elements. The code also retrieves sepal length and width values for each datum but does not use them for positioning. The chart is sized to the full browser 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.