Viewing a saved revision (read-only)
e4ff497f3af34848b0f91cec567eae15
Activity-8_Task-3.2
This visualization is a scatter plot of iris flower measurements, showing sepal length against petal length with each species (setosa, versicolor, virginica) distinguished by a unique symbol. The plot includes linear axes for both numerical variables and a separate legend key that maps each species to its corresponding shape. Built with D3 v7, the code uses `scaleLinear` and `scaleOrdinal` to map data values to positions and shapes, while `symbol()` from D3 generates the custom mark paths. The chart loads the iris dataset from a remote CSV file and renders responsively to fill the browser window. The implementation uses D3's join operation to efficiently create and update the SVG elements for marks, axes, and legend.
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.