🌍 Public
Viewing a saved revision (read-only)
740641422d2b442da7075a43073e6f18
Activity-8_Task-3.2
A scatter plot displays sepal length against petal length for the Iris dataset, with each point's shape encoding the flower species. The visualization uses D3 v7 with a linear scale for both axes and an ordinal scale mapping species to distinct symbols. Points are rendered as SVG paths using the `symbol` generator, while a custom legend communicates the shape-species mapping. Data is loaded from a remote CSV and parsed with `d3.csvParse`. The plot includes axis labels and relies on reusable `axes` and `shapeLegend` modules, with axes drawn via `d3.axisLeft` and `d3.axisBottom`.
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.